Skip to content

Commit

Permalink
Merge branch 'bugfix/wpa3_sta_mem_leak_v5.2' into 'release/v5.2'
Browse files Browse the repository at this point in the history
Fix a memory leak that occurs when SAE connection is interrupted (Backport v5.2)

See merge request espressif/esp-idf!31652
  • Loading branch information
jack0c committed Jun 24, 2024
2 parents 1a48173 + 8b0895e commit 51bd0da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,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;
Expand All @@ -272,6 +271,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();
}

Expand Down

0 comments on commit 51bd0da

Please # to comment.