3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

eapol: Don't l_queue_remove from state_machines while destroying it

We do an l_queue_destroy(state_machines, eapol_sm_destroy) so don't
l_queue_remove from state_machines inside eapol_sm_destroy.
This commit is contained in:
Andrew Zaborowski 2019-08-23 03:30:25 +02:00 committed by Denis Kenzior
parent 9c4c9a71c5
commit 9a9ff9f2f3

View File

@ -863,8 +863,6 @@ static void eapol_sm_destroy(void *value)
explicit_bzero(sm->installed_igtk, sizeof(sm->installed_igtk));
l_free(sm);
l_queue_remove(state_machines, sm);
}
struct eapol_sm *eapol_sm_new(struct handshake_state *hs)
@ -886,6 +884,8 @@ struct eapol_sm *eapol_sm_new(struct handshake_state *hs)
void eapol_sm_free(struct eapol_sm *sm)
{
eapol_sm_destroy(sm);
l_queue_remove(state_machines, sm);
}
void eapol_sm_set_listen_interval(struct eapol_sm *sm, uint16_t interval)