eapol: Stop eapol timeout after step 3/4
Move the cancelling of the eapol timeout from the end of step 1 to step 3 to guard the whole handshake. At the end of step 1 stop the EAPOL-Start timeout for the case of 802.1X authentication + a cached PMKSA (not used yet.)
This commit is contained in:
parent
0abab92cac
commit
7e8e8b2ac2
|
@ -1063,8 +1063,8 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm,
|
||||||
eapol_write(sm, (struct eapol_frame *) step2);
|
eapol_write(sm, (struct eapol_frame *) step2);
|
||||||
l_free(step2);
|
l_free(step2);
|
||||||
|
|
||||||
l_timeout_remove(sm->timeout);
|
l_timeout_remove(sm->eapol_start_timeout);
|
||||||
sm->timeout = NULL;
|
sm->eapol_start_timeout = NULL;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1346,6 +1346,9 @@ retransmit:
|
||||||
rekey_offload(sm->handshake->ifindex, ptk->kek, ptk->kck,
|
rekey_offload(sm->handshake->ifindex, ptk->kek, ptk->kck,
|
||||||
sm->replay_counter, sm->user_data);
|
sm->replay_counter, sm->user_data);
|
||||||
|
|
||||||
|
l_timeout_remove(sm->timeout);
|
||||||
|
sm->timeout = NULL;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
error_ie_different:
|
error_ie_different:
|
||||||
|
|
Loading…
Reference in New Issue