From: Jouni Malinen Date: Sun, 5 Jan 2014 12:18:38 +0000 (+0200) Subject: EAP-GPSK: Report CSuite negotiation failure properly X-Git-Tag: hostap_2_1~187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4b8c71ba41b018ecf6c03a71c5526b94806197b;p=thirdparty%2Fhostap.git EAP-GPSK: Report CSuite negotiation failure properly Setting methodState = DONE for the case where GPSK-1 is found to be invalid or incompatible allows EAP state machine to proceed to FAILURE state instead of remaining stuck until AP times out the connection. Signed-hostap: Jouni Malinen --- diff --git a/src/eap_peer/eap_gpsk.c b/src/eap_peer/eap_gpsk.c index 6f7b23b2b..5b023c793 100644 --- a/src/eap_peer/eap_gpsk.c +++ b/src/eap_peer/eap_gpsk.c @@ -289,6 +289,7 @@ static struct wpabuf * eap_gpsk_process_gpsk_1(struct eap_sm *sm, pos = eap_gpsk_process_csuite_list(sm, data, &csuite_list, &csuite_list_len, pos, end); if (pos == NULL) { + ret->methodState = METHOD_DONE; eap_gpsk_state(data, FAILURE); return NULL; }