]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP peer: Clear ignore flag in INITIALIZE state
authorJouni Malinen <j@w1.fi>
Sat, 31 Oct 2015 17:39:23 +0000 (19:39 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 31 Oct 2015 19:56:59 +0000 (21:56 +0200)
commit17b703289113ee08154c4ced209ed86bf169ce01
treed82cf0e80ca5b25ed9e3935d49febbdfc38bd58d
parent1f1e61928273e10b0595eea637071f09729cb1c0
EAP peer: Clear ignore flag in INITIALIZE state

While this is not part of RFC 4137, the way m.check(eapReqData) is
implemented in wpa_supplicant allows an EAP method to not update the
ignore value even though each such call is really supposed to get a new
response. It seems to be possible to hit a sequence where a previous EAP
authentication attempt terminates with sm->ignore set from the last
m.check() call and the following EAP authentication attempt could fail
to go through the expected code path if it does not clear the ignore
flag. This is likely only hit in some error cases, though. The hwsim
test cases could trigger this with the following sequence:
eap_proto_ikev2 ap_wps_m1_oom

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap.c