forked from espressif/esp-idf
Merge branch 'bugfix/wpa3_sta_mem_leak_v5.1' into 'release/v5.1'
Fix a memory leak that occurs when the SAE connection is interrupted (Backport v5.1) See merge request espressif/esp-idf!31661
This commit is contained in:
Submodule components/esp_wifi/lib updated: 1b4c86a66f...90c16e0122
@@ -257,7 +257,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;
|
||||
@@ -271,6 +270,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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user