3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-04-20 11:18:04 +02:00

eap-mschapv2: Fix leak of state->user on error path

Fixes: 6dc5d2c3ecb6 ("eap-mschapv2: Load credentials obtained from agent")
This commit is contained in:
James Prestwood 2025-04-16 10:33:45 -07:00 committed by Denis Kenzior
parent f469db8a95
commit c00bc3a065

View File

@ -544,7 +544,8 @@ static bool eap_mschapv2_load_settings(struct eap_state *eap,
return true;
error:
free(state);
l_free(state->user);
l_free(state);
return false;
}