eapol: Free sm->timeout when it expires

This commit is contained in:
Andrew Zaborowski 2017-01-31 03:42:49 +01:00 committed by Denis Kenzior
parent e1dc53e895
commit 367f1ec798
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}