diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-06-01 14:04:00 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-06-01 14:04:00 +0000 |
commit | 6ae6854355af3fb8b1ce7d33e29163f9d63a387f (patch) | |
tree | 375dbc2b7dd66bc750cf159cd78720844a15cede /sys | |
parent | 07c9330a406672359b85ad68b3bc57accb613f7d (diff) | |
download | FreeBSD-src-6ae6854355af3fb8b1ce7d33e29163f9d63a387f.zip FreeBSD-src-6ae6854355af3fb8b1ce7d33e29163f9d63a387f.tar.gz |
Properly initialize stack variable sr in setmlme_assoc_adhoc().
Found with: Coverity Prevent(tm)
CID 4365
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 3c913cc..7491770 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -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); |