3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

eap-ttls: Fix double free

This commit is contained in:
Denis Kenzior 2018-06-14 15:58:43 -05:00
parent e15caa2288
commit eb1a183277

View File

@ -714,7 +714,7 @@ static int eap_ttls_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_setting); passphrase_setting);
if (secret) if (secret)
passphrase = secret->value; passphrase = l_strdup(secret->value);
} }
if (path) { if (path) {