diff options
-rw-r--r-- | sys/net80211/ieee80211_proto.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 82af52bed16..c20b4e49c03 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_proto.c,v 1.45 2011/02/21 20:00:54 stsp Exp $ */ +/* $OpenBSD: ieee80211_proto.c,v 1.46 2012/01/18 14:35:56 stsp Exp $ */ /* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */ /*- @@ -702,7 +702,9 @@ ieee80211_auth_open(struct ieee80211com *ic, const struct ieee80211_frame *wh, return; } if (ni == ic->ic_bss) { - ni = ieee80211_alloc_node(ic, wh->i_addr2); + ni = ieee80211_find_node(ic, wh->i_addr2); + if (ni == NULL) + ni = ieee80211_alloc_node(ic, wh->i_addr2); if (ni == NULL) { return; } |