]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-GPSK: Report CSuite negotiation failure properly
authorJouni Malinen <j@w1.fi>
Sun, 5 Jan 2014 12:18:38 +0000 (14:18 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 08:45:11 +0000 (10:45 +0200)
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 <j@w1.fi>

src/eap_peer/eap_gpsk.c

index 6f7b23b2b300b503f6b9ed34d4f31248234cd151..5b023c7933142e9b9eef7f72fe2a264643499ed6 100644 (file)
@@ -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;
        }