From: Jouni Malinen Date: Sun, 30 Aug 2015 15:36:28 +0000 (+0300) Subject: EAP-WSC peer: Reject connection on unexpected failure X-Git-Tag: hostap_2_5~90 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=5882c011d687e07d2bf7c0c6bc5b851cc2d01bd0 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 --- 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;