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 BOT
parent ed14b8d3f8
commit 60d935f15d
3 changed files with 6 additions and 3 deletions

View File

@@ -2731,8 +2731,6 @@ struct wpa_sm * get_wpa_sm(void)
int wpa_sm_set_ap_rsnxe(const u8 *ie, size_t len)
{
struct wpa_sm *sm = &gWpaSm;
if (!sm)
return -1;
os_free(sm->ap_rsnxe);
if (!ie || len == 0) {