aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2003-05-29 03:59:42 (GMT)
committerJouni Malinen <j@w1.fi>2003-05-29 03:59:42 (GMT)
commite69db17c6927bd56a01148e2c44785c860be2d4e (patch)
tree419070ae210b20a7f5117d66fa13792407909339
parentb26346a45b0de191c618ca9bc427bc85639c444e (diff)
downloadhostap-history-e69db17c6927bd56a01148e2c44785c860be2d4e.zip
hostap-history-e69db17c6927bd56a01148e2c44785c860be2d4e.tar.gz
hostap-history-e69db17c6927bd56a01148e2c44785c860be2d4e.tar.bz2
Do not decrement sta->users when in the case it was not incremented (when
STA entry existed, but it was not marked authenticated).
-rw-r--r--driver/modules/hostap_ap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/modules/hostap_ap.c b/driver/modules/hostap_ap.c
index ef04422..9664edb 100644
--- a/driver/modules/hostap_ap.c
+++ b/driver/modules/hostap_ap.c
@@ -1586,6 +1586,7 @@ static void handle_assoc(local_info_t *local, struct sk_buff *skb,
txt = "trying to associate before authentication";
send_deauth = 1;
resp = WLAN_STATUS_UNSPECIFIED_FAILURE;
+ sta = NULL; /* do not decrement sta->users */
goto fail;
}
atomic_inc(&sta->users);