aboutsummaryrefslogtreecommitdiffstats
path: root/driver/modules/hostap_ap.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/modules/hostap_ap.c')
-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);