]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix REMOVE_NETWORK to not run operations with invalid current_ssid
authorDeepthi Gowri <deepthi@codeaurora.org>
Mon, 3 Sep 2012 08:55:38 +0000 (11:55 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 3 Sep 2012 08:55:38 +0000 (11:55 +0300)
commit59ff6653aad1c228cb2e9ccfe02b9dd4e6fc7901
tree0322084980b78032df1863941905138e4aa4b901
parent7ff833674b5b6447361098dcd7b56e8c08c84a0b
Fix REMOVE_NETWORK to not run operations with invalid current_ssid

If the REMOVE_NETWORK command is used to delete the currently connected
network, some operations were run between removing the network and
clearing of wpa_s->current_ssid. This left wpa_s->current_ssid pointing
to freed memory and should any operation end up using it before the
pointer gets cleared, freed memory could be references. Avoid this by
removing the network only after having completed the operations that
clear wpa_s->current_ssid.

Signed-hostap: Deepthi Gowri <deepthi@codeaurora.org>
intended-for: hostap-1
wpa_supplicant/ctrl_iface.c