]> git.ipfire.org Git - thirdparty/hostap.git/commit
Check current_ssid on unexpected association event
authorJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 10:32:13 +0000 (13:32 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 10:32:13 +0000 (13:32 +0300)
commitfb958ea76e76f2b682bf9048b07ddb25dd80313e
tree6318aca60f434bab4a01c8d8357b5ee09fc590ca
parentf5fa824e9a86940835e30a5a0b1fd3d8a7c4c640
Check current_ssid on unexpected association event

This is mainly to keep static analyzers silent since it does not look
like this code path can be reached in practice due to the way
association events are handled and current_ssid is either set before
resched here or the association is rejected. Anyway, if this could be
reached, the wpa_supplicant_set_wpa_none_key() call would end up
dereferencing a NULL pointer, so add an explicit check to make sure that
does not happen.

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