mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-29 08:14:02 -05:00
Drop any pending EAPOL RX frame when starting a new connection
Such a pending frame cannot be valid anymore, so drop it instead of risking of using an unexpected EAPOL frame after association if a previous association received one at the end and the new association can happen within 100 ms. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
7c7234a583
commit
e7160bd8fe
@ -1602,6 +1602,13 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
|
||||
|
||||
wpa_s->own_disconnect_req = 0;
|
||||
|
||||
/*
|
||||
* If we are starting a new connection, any previously pending EAPOL
|
||||
* RX cannot be valid anymore.
|
||||
*/
|
||||
wpabuf_free(wpa_s->pending_eapol_rx);
|
||||
wpa_s->pending_eapol_rx = NULL;
|
||||
|
||||
if (ssid->mac_addr == -1)
|
||||
rand_style = wpa_s->conf->mac_addr;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user