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 <j@w1.fi>
This commit is contained in:
parent
5a0f596b7b
commit
c4b8c71ba4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue