]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant.c
wpa_supplicant: Fix parsing errors on additional config file
authorJouni Malinen <j@w1.fi>
Sun, 4 Feb 2018 10:20:13 +0000 (12:20 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 4 Feb 2018 10:20:13 +0000 (12:20 +0200)
commit3bd35b681689bf46e54c4cc7e3dc8b04542e07d5
tree03534ec9eabf72203c7fe141929c2254887c4beb
parent9c5fe742a25d2361b49051aef5b1ed0083494b6c
wpa_supplicant: Fix parsing errors on additional config file

If the -I<config> argument is used and the referenced configuration file
cannot be parsed, wpa_config_read() ended up freeing the main
configuration data structure and that resulted in use of freed memory in
such an error case. Fix this by not freeing the main config data and
handling the error case in the caller.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/config_file.c
wpa_supplicant/wpa_supplicant.c