eap_proxy: Confirm eap_proxy initialization before reading SIM info
authorNaresh Jayaram <c_njayar@qti.qualcomm.com>
Wed, 23 Oct 2013 16:17:14 +0000 (19:17 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 23 Oct 2013 17:51:39 +0000 (20:51 +0300)
commit07041c6f991d933d2361c8204433c09212f9fb0b
tree197067b1f65bf302843eeea650d220c224dcd97a
parent47d986e6ffed45a4e2506646a5dbee2c0e1c6209
eap_proxy: Confirm eap_proxy initialization before reading SIM info

Trying to access the SIM card details without checking if the eap_proxy
layer has been initialized can results in a crash. Address this by
sending the request for the IMSI through eapol_supp_sm.c which can
verify that eap_proxy has been initialized.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/eapol_supp/eapol_supp_sm.c
src/eapol_supp/eapol_supp_sm.h
wpa_supplicant/wpa_supplicant.c