]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix a memory leak in WPS with ap_scan=2
authorJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 16:46:32 +0000 (18:46 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 16:46:32 +0000 (18:46 +0200)
commit40551a15c15ac6fd0a2e088363af6a2cd4415d56
tree818703897a8d47a38d5335d90a041b2e920bc631
parent900adb3c9f0da591261e4a63b9372ef7f362fe1b
Fix a memory leak in WPS with ap_scan=2

The wpa_ie buffer is now allocated here and needs to be freed before
returning from the function.

Fixes: d2ba0d719e2a ("Move assoc param setting into a helper function")
Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_supplicant.c