]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Send an event before throwing a station on re-authentication
authorAndreas Tobler <andreas.tobler@cloudguard.ch>
Mon, 13 Aug 2018 05:45:37 +0000 (07:45 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Sep 2018 09:48:32 +0000 (12:48 +0300)
If you modify the WLAN-STA-AUTHORIZED bit in sta->flags, you have to
call the ap_sta_set_authorized() function to make sure the corresponding
event is sent over the control interface. Otherwise we leak entries in
the event history.

Signed-off-by: Andreas Tobler <andreas.tobler@cloudguard.ch>
src/ap/ieee802_11.c

index d7e7210f7a15907331c084039ad0a5390d6ed890..d8b34fa52b21acbf649e9dc5149015bf5f772234 100644 (file)
@@ -2014,6 +2014,7 @@ static void handle_auth(struct hostapd_data *hapd,
                 * updated. To handle this, station's added_unassoc flag is
                 * cleared once the station has completed association.
                 */
+               ap_sta_set_authorized(hapd, sta, 0);
                hostapd_drv_sta_remove(hapd, sta->addr);
                sta->flags &= ~(WLAN_STA_ASSOC | WLAN_STA_AUTH |
                                WLAN_STA_AUTHORIZED);