]> git.ipfire.org Git - thirdparty/hostap.git/commit
Avoid theoretical NULL pointer dereference from debug code
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 13 Apr 2011 23:32:07 +0000 (02:32 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 13 Apr 2011 23:32:07 +0000 (02:32 +0300)
commit2a522e71927d834060bdddd7a00aa13a4fac3157
treef9f2f220f7b427a2959bcdacdb4b0b484ebe50a1
parentf4fbba8cf92027b852443866e03217a4fe7644e5
Avoid theoretical NULL pointer dereference from debug code

The change to use wpa_dbg() in wpa_sm_parse_own_wpa_ie() could result
in a NULL pointer dereference if the function were called when WPA
state machine has not been initialized. While this cannot really
happen in practice, it is better to be prepared for that since that
was the case before the wpa_dbg() change.
src/rsn_supp/wpa.c