]> git.ipfire.org Git - thirdparty/hostap.git/commit
More robust timer_tick_enabled tracking
authorJouni Malinen <jouni@codeaurora.org>
Wed, 13 Mar 2019 21:25:21 +0000 (23:25 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 13 Mar 2019 21:33:41 +0000 (23:33 +0200)
commit673631b8a3895128568eb30bdbd74d61a6a8f51b
tree87a337520d16e72f2bcd0bfabe1a7165b026b04b
parent64766a77835ced5063e6ea512ae0f54cf041cd56
More robust timer_tick_enabled tracking

Do not set sm->timer_tick_enabled if the eloop_register_timeout() call
fails so that the next attempt to enable the timer in
eapol_enable_timer_tick() can try to recover from unexpected eloop
failures. This should not really be needed in practical use cases, but
certain out-of-memory test cases can trigger allocation failure in
eloop_register_timeout() and if that happens, the previous EAPOL
supplicant state machine implementation got pretty much completely stuck
for any operation needing the timer.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/eapol_supp/eapol_supp_sm.c