mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
eap-peap: Fix double free
This commit is contained in:
parent
eb1a183277
commit
75b492eacc
@ -902,7 +902,7 @@ static int eap_peap_check_settings(struct l_settings *settings,
|
|||||||
secret = l_queue_find(secrets, eap_secret_info_match,
|
secret = l_queue_find(secrets, eap_secret_info_match,
|
||||||
passphrase_entry);
|
passphrase_entry);
|
||||||
if (secret)
|
if (secret)
|
||||||
passphrase = secret->value;
|
passphrase = l_strdup(secret->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path) {
|
if (path) {
|
||||||
|
Loading…
Reference in New Issue
Block a user