3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 03:18:46 +02:00

ap: free passphrase on error

This commit is contained in:
James Prestwood 2021-02-08 12:19:57 -08:00 committed by Denis Kenzior
parent 17ba7e415b
commit 0ae3e1c59d

View File

@ -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;
} }