summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-11-13 20:32:46 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-11-13 20:32:46 +0000
commit706c70c7c7ef7c6637de18466984bab5b35d4a69 (patch)
tree91293dd7fcfe355edcb9ab96769e23ba4c891925 /sys
parentf815983418862c69f38d2ade274a4785797e276c (diff)
fix a possible NULL deref.
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 7fb80ef0bbe..2c87a7a33aa 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.c,v 1.16 2006/06/19 12:17:56 reyk Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.17 2006/11/13 20:32:45 damien Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
@@ -118,8 +118,8 @@ ieee80211_node_attach(struct ifnet *ifp)
/* XXX no way to recover */
printf("%s: no memory for AID bitmap!\n", __func__);
ic->ic_max_aid = 0;
- }
- memset(ic->ic_aid_bitmap, 0, size);
+ } else
+ memset(ic->ic_aid_bitmap, 0, size);
}
static struct ieee80211_node *