From: Jouni Malinen Date: Fri, 27 Dec 2024 21:51:55 +0000 (+0200) Subject: Clear the pending EAPOL RX on disconnection X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d74d34d316d150a0717fc369ecff09dab18545f;p=thirdparty%2Fhostap.git Clear the pending EAPOL RX on disconnection 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 --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 77bc3c7a9..bab214572 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -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; }