]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: Free config only if it was allocated in same call
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 1 Feb 2018 00:34:54 +0000 (00:34 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 4 Feb 2018 10:13:12 +0000 (12:13 +0200)
commit9c5fe742a25d2361b49051aef5b1ed0083494b6c
treefca22105f56b30a54133454f44d951fce9ffedc4
parent946ed13c98278457b7cbade88521dbad09513324
wpa_supplicant: Free config only if it was allocated in same call

If option -I:config points to a non-existing file, the the previously
allocated config must not be freed. Avoid use of freed memory in such an
error case by skipping the incorrect freeing operation.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/config_file.c