mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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:
parent
fc078be2dd
commit
5882c011d6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user