diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-03-28 13:02:59 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-03-28 13:02:59 +0000 |
commit | a1fb7db67753590020570d81289407e56dde5853 (patch) | |
tree | d01e608bd91fbfad522535c454eba09939be5b35 /sys/net80211 | |
parent | 218a5b15263140b9a841fe5db5ac0b532a0bf411 (diff) |
Four uses of uninitialized variables found by clang via jsg@. ar5416, ar9287
and athn are only theoretically interesting. i33380211_node fixes a real
bug in occupied channel detection.
ok damien@
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index b2e4d827b83..d7214aebbb8 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.c,v 1.56 2010/02/17 18:34:37 damien Exp $ */ +/* $OpenBSD: ieee80211_node.c,v 1.57 2010/03/28 13:02:58 krw Exp $ */ /* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */ /*- @@ -522,6 +522,7 @@ ieee80211_end_scan(struct ifnet *ifp) * an unnoccupied one. If that fails, pick a random * channel from the active set. */ + memset(occupied, 0, sizeof(occupied)); RB_FOREACH(ni, ieee80211_tree, &ic->ic_tree) setbit(occupied, ieee80211_chan2ieee(ic, ni->ni_chan)); for (i = 0; i < IEEE80211_CHAN_MAX; i++) |