eapol: reorder eapol_sm_free

Technically there's no problem here as l_queue_remove does not
dereference the pointer.  Still, it confuses certain static analysis
tools in the current form. Reordering this will not change the behavior
at all.
This commit is contained in:
James Prestwood 2019-10-16 16:43:02 -07:00 committed by Denis Kenzior
parent 0ade612b3e
commit 91c449d74a
1 changed files with 2 additions and 2 deletions

View File

@ -886,9 +886,9 @@ 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);
eapol_sm_destroy(sm);
}
void eapol_sm_set_listen_interval(struct eapol_sm *sm, uint16_t interval)