mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
Properly initialize stack variable sr in setmlme_assoc_adhoc().
Found with: Coverity Prevent(tm) CID 4365 MFC after: 3 days
This commit is contained in:
parent
dc5d34e454
commit
525065ba9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208693
@ -1518,6 +1518,7 @@ setmlme_assoc_adhoc(struct ieee80211vap *vap,
|
||||
memcpy(vap->iv_des_ssid[0].ssid, ssid, ssid_len);
|
||||
vap->iv_des_nssid = 1;
|
||||
|
||||
memset(&sr, 0, sizeof(sr));
|
||||
sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE | IEEE80211_IOC_SCAN_ONCE;
|
||||
sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER;
|
||||
memcpy(sr.sr_ssid[0].ssid, ssid, ssid_len);
|
||||
|
Loading…
Reference in New Issue
Block a user