From 367f1ec7983056e7d0d01eff42afb5ca089c9bb2 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Tue, 31 Jan 2017 03:42:49 +0100 Subject: [PATCH] eapol: Free sm->timeout when it expires --- src/eapol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eapol.c b/src/eapol.c index fcaaff54..9d778425 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -800,7 +800,9 @@ static void eapol_timeout(struct l_timeout *timeout, void *user_data) { struct eapol_sm *sm = user_data; + l_timeout_remove(sm->timeout); sm->timeout = NULL; + handshake_failed(sm, MPDU_REASON_CODE_4WAY_HANDSHAKE_TIMEOUT); }