]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear the pending EAPOL RX on disconnection
authorJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 21:51:55 +0000 (23:51 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 21:51:55 +0000 (23:51 +0200)
Avoid any potentially unexpected behavior if the postponed EAPOL RX
could end up being processed in a different association that the one in
which the frame was postponed.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/events.c

index 77bc3c7a9cd00396817e5cd8b8fc7b5844a915de..bab2145723baabd5ba12987a4aa62922675f4765 100644 (file)
@@ -436,6 +436,9 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
 
        wpa_s->ssid_verified = false;
        wpa_s->bigtk_set = false;
+
+       wpabuf_free(wpa_s->pending_eapol_rx);
+       wpa_s->pending_eapol_rx = NULL;
 }