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:
parent
f469db8a95
commit
c00bc3a065
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user