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>
This commit is contained in:
Jouni Malinen 2015-08-30 18:36:28 +03:00
parent fc078be2dd
commit 5882c011d6

View File

@ -557,6 +557,9 @@ send_msg:
if (data->out_buf == NULL) { if (data->out_buf == NULL) {
wpa_printf(MSG_DEBUG, "EAP-WSC: Failed to receive " wpa_printf(MSG_DEBUG, "EAP-WSC: Failed to receive "
"message from WPS"); "message from WPS");
eap_wsc_state(data, FAIL);
ret->methodState = METHOD_DONE;
ret->decision = DECISION_FAIL;
return NULL; return NULL;
} }
data->out_used = 0; data->out_used = 0;