Skip to content

Commit f8f0762

Browse files
author
Mika Leppänen
committed
Corrected authenticator EAP-TLS start retries
State machine went to invalid state if supplicant retry of identity response arrived after EAP-TLS start sending. It caused the retries of EAP-TLS start to be invalid (i.e. without start bit set).
1 parent 00fdf8d commit f8f0762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/Security/protocols/eap_tls_sec_prot/auth_eap_tls_sec_prot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,6 @@ static void auth_eap_tls_sec_prot_state_machine(sec_prot_t *prot)
452452
return;
453453
}
454454

455-
sec_prot_state_set(prot, &data->common, EAP_TLS_STATE_RESPONSE);
456-
457455
// EAP response
458456
if (data->eap_code == EAP_RESPONSE) {
459457
// Handle EAP response, TLS EAP
@@ -467,6 +465,8 @@ static void auth_eap_tls_sec_prot_state_machine(sec_prot_t *prot)
467465
return;
468466
}
469467

468+
sec_prot_state_set(prot, &data->common, EAP_TLS_STATE_RESPONSE);
469+
470470
// All fragments received for a message
471471
if (result == EAP_TLS_MSG_RECEIVE_DONE) {
472472
auth_eap_tls_sec_prot_init_tls(prot);

0 commit comments

Comments
 (0)