aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-08-30 15:36:28 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-30 15:37:44 (GMT)
commit5882c011d687e07d2bf7c0c6bc5b851cc2d01bd0 (patch)
treed06e746796a50a6adb609bd9a6c7292540267f05 /src
parentfc078be2dd7ff99d03c2edf88a1c226e151d00b0 (diff)
downloadhostap-5882c011d687e07d2bf7c0c6bc5b851cc2d01bd0.zip
hostap-5882c011d687e07d2bf7c0c6bc5b851cc2d01bd0.tar.gz
hostap-5882c011d687e07d2bf7c0c6bc5b851cc2d01bd0.tar.bz2
EAP-WSC peer: Reject connection on unexpected failure
Previously, the EAP-WSC peer state machine ended up just ignoring an error and waiting for a new message from the AP. This is not going to recover the exchange, so simply force the connection to terminate immediately. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/eap_peer/eap_wsc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eap_peer/eap_wsc.c b/src/eap_peer/eap_wsc.c
index 7ce0a53..7ac99c7 100644
--- a/src/eap_peer/eap_wsc.c
+++ b/src/eap_peer/eap_wsc.c
@@ -557,6 +557,9 @@ send_msg:
if (data->out_buf == NULL) {
wpa_printf(MSG_DEBUG, "EAP-WSC: Failed to receive "
"message from WPS");
+ eap_wsc_state(data, FAIL);
+ ret->methodState = METHOD_DONE;
+ ret->decision = DECISION_FAIL;
return NULL;
}
data->out_used = 0;