mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
eapol: On success, reset EAP state
Instead of destroying the EAP object, just reset its state in case the EAP process completed successfully. This allows EAP Reauthentication to work.
This commit is contained in:
parent
2722990e61
commit
9bcb2b75ac
11
src/eapol.c
11
src/eapol.c
@ -1487,11 +1487,14 @@ static void eapol_eap_complete_cb(enum eap_result result, void *user_data)
|
||||
"eapSuccess" : (result == EAP_RESULT_FAIL ?
|
||||
"eapFail" : "eapTimeout"));
|
||||
|
||||
eap_free(sm->eap);
|
||||
sm->eap = NULL;
|
||||
|
||||
if (result != EAP_RESULT_SUCCESS)
|
||||
if (result != EAP_RESULT_SUCCESS) {
|
||||
eap_free(sm->eap);
|
||||
sm->eap = NULL;
|
||||
handshake_failed(sm, MMPDU_REASON_CODE_IEEE8021X_FAILED);
|
||||
return;
|
||||
}
|
||||
|
||||
eap_reset(sm->eap);
|
||||
}
|
||||
|
||||
/* This respresentes the eapResults message */
|
||||
|
Loading…
Reference in New Issue
Block a user