mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(esp_wifi): Fix a memory leak that occurs when the SAE connection is interrupted
1. Free temporary data used by SAE before memsetting the same 2. Drop any received auth responses that use a different algorithm than the one currently in use
This commit is contained in:
parent
aa27fbd231
commit
0fac1ebe40
@ -1 +1 @@
|
||||
Subproject commit 9693bfca0c17bb046aff67f55e7f880ee06e6e52
|
||||
Subproject commit eacd07f165fee254b37ee5819208e1185549ec59
|
@ -294,7 +294,6 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
|
||||
case WIFI_REASON_ASSOC_FAIL:
|
||||
case WIFI_REASON_CONNECTION_FAIL:
|
||||
case WIFI_REASON_HANDSHAKE_TIMEOUT:
|
||||
esp_wpa3_free_sae_data();
|
||||
wpa_sta_clear_curr_pmksa();
|
||||
wpa_sm_notify_disassoc(&gWpaSm);
|
||||
break;
|
||||
@ -308,6 +307,7 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
|
||||
owe_deinit();
|
||||
#endif /* CONFIG_OWE_STA */
|
||||
|
||||
esp_wpa3_free_sae_data();
|
||||
supplicant_sta_disconn_handler(reason_code);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user