Avoid a theoretical use-after-free in WPA auth sm init
authorJouni Malinen <j@w1.fi>
Sun, 10 Jan 2010 16:54:41 +0000 (18:54 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Jan 2010 16:54:41 +0000 (18:54 +0200)
commite4a6ea1d9c26489a3c40e5c7400a1056aa7ddfcb
tree0532c6ee7840f261477c1b988a146d00b6fcafe0
parent097c5802daa3e6cad5175cee5fb5ae05452a10e4
Avoid a theoretical use-after-free in WPA auth sm init

wpa_sm_step() could theoretically free the statemachine, but it does
not do it in this particular case. Anyway, the code can be cleaned to
verify whether the state machine data is still available after the
wpa_sm_step() call.
src/ap/wpa_auth.c