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:
Nachiket Kukade
2024-12-30 11:50:03 +05:30
committed by Shreyas Sheth
parent 3b565f017b
commit 7c21e36a42
3 changed files with 7 additions and 4 deletions

View File

@@ -178,6 +178,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);