mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-05 12:52:37 +01:00
ap: free passphrase on error
This commit is contained in:
parent
17ba7e415b
commit
0ae3e1c59d
1
src/ap.c
1
src/ap.c
@ -2568,6 +2568,7 @@ static int ap_load_profile_and_dhcp(struct ap_state *ap, bool *wait_dhcp)
|
|||||||
if (strlen(passphrase) > 63) {
|
if (strlen(passphrase) > 63) {
|
||||||
l_error("[Security].Passphrase must not exceed "
|
l_error("[Security].Passphrase must not exceed "
|
||||||
"63 characters");
|
"63 characters");
|
||||||
|
l_free(passphrase);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user