aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2007-02-04 05:49:16 +0000
committerSam Leffler <sam@FreeBSD.org>2007-02-04 05:49:16 +0000
commitf3b179a4b1e1c1c4e81d9cbf90d1a83d85c6eeb6 (patch)
treee7aa4ae9a01d16f177c12a8daee61e0f45c20e93
parentdbbc0c831233f80ccf3806848aaa69fbefb4f2b9 (diff)
Notes
-rw-r--r--sys/net80211/ieee80211_input.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c
index 53736c1fc333..9c3d60999ec4 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -873,6 +873,15 @@ ieee80211_auth_open(struct ieee80211com *ic, struct ieee80211_frame *wh,
"bad sta auth mode %u", ni->ni_authmode);
ic->ic_stats.is_rx_bad_auth++; /* XXX */
if (ic->ic_opmode == IEEE80211_M_HOSTAP) {
+ /*
+ * Clear any challenge text that may be there if
+ * a previous shared key auth failed and then an
+ * open auth is attempted.
+ */
+ if (ni->ni_challenge != NULL) {
+ FREE(ni->ni_challenge, M_DEVBUF);
+ ni->ni_challenge = NULL;
+ }
/* XXX hack to workaround calling convention */
ieee80211_send_error(ic, ni, wh->i_addr2,
IEEE80211_FC0_SUBTYPE_AUTH,