mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +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);
|
memcpy(vap->iv_des_ssid[0].ssid, ssid, ssid_len);
|
||||||
vap->iv_des_nssid = 1;
|
vap->iv_des_nssid = 1;
|
||||||
|
|
||||||
|
memset(&sr, 0, sizeof(sr));
|
||||||
sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE | IEEE80211_IOC_SCAN_ONCE;
|
sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE | IEEE80211_IOC_SCAN_ONCE;
|
||||||
sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER;
|
sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER;
|
||||||
memcpy(sr.sr_ssid[0].ssid, ssid, ssid_len);
|
memcpy(sr.sr_ssid[0].ssid, ssid, ssid_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user