mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-19 18:22:32 +01:00
eapol: Free eapol_sm even if callback is null
If deauthenticate callback was not provided, the state machine was not being freed / removed.
This commit is contained in:
parent
4a27563b5a
commit
169aa04570
@ -560,10 +560,9 @@ void eapol_cancel(uint32_t ifindex)
|
||||
static inline void handshake_failed(uint32_t ifindex, struct eapol_sm *sm,
|
||||
uint16_t reason_code)
|
||||
{
|
||||
if (!deauthenticate)
|
||||
return;
|
||||
|
||||
deauthenticate(ifindex, sm->aa, sm->spa, reason_code, sm->user_data);
|
||||
if (deauthenticate)
|
||||
deauthenticate(ifindex, sm->aa, sm->spa, reason_code,
|
||||
sm->user_data);
|
||||
|
||||
l_queue_remove(state_machines, sm);
|
||||
eapol_sm_free(sm);
|
||||
|
Loading…
Reference in New Issue
Block a user