summaryrefslogtreecommitdiff
path: root/src/eap_peer/eap_wsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eap_peer/eap_wsc.c')
-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 7ce0a53d0b29..7ac99c7ce727 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;