mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-05 08:27:30 +00:00
fix(wpa_supplicant): Fix some coverity issues in wpa_supplicant
1. Fix leak in SoftAP while sending SAE Confirm 2. Move NULL check before pointer is getting used 3. Remove some dead code
This commit is contained in:
@@ -179,6 +179,7 @@ static int auth_sae_send_confirm(struct hostapd_data *hapd,
|
||||
#ifdef ESP_SUPPLICANT
|
||||
if (sta->remove_pending) {
|
||||
reply_res = -1;
|
||||
wpabuf_free(data);
|
||||
} else {
|
||||
if (sta->sae_data)
|
||||
wpabuf_free(sta->sae_data);
|
||||
|
||||
Reference in New Issue
Block a user