eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 9a9ff9f2f3cca137198d11515e9e5a48ab1c2989
parent 9c4c9a71c5128abe98a97f84052aaa2dadeb1ab8
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Fri, 23 Aug 2019 03:30:25 +0200

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.

Diffstat:
Msrc/eapol.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/eapol.c b/src/eapol.c @@ -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)