From 706c70c7c7ef7c6637de18466984bab5b35d4a69 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Mon, 13 Nov 2006 20:32:46 +0000 Subject: fix a possible NULL deref. --- sys/net80211/ieee80211_node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net80211/ieee80211_node.c') 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 * -- cgit v1.2.3