]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Fix disconnect from EAPOL state machine handling
authorJouni Malinen <j@w1.fi>
Sun, 2 Feb 2025 09:54:46 +0000 (11:54 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Feb 2025 09:54:46 +0000 (11:54 +0200)
commitd37045e859860a10c37a69f6d7de84c928799d6a
tree487418e03d75aa2d1ce8d3acd3231dbb9c0adcb8
parent7d502bb37aefbfc512a1455aac79fbb50b3d52b8
AP: Fix disconnect from EAPOL state machine handling

An earlier change to extend ap_sta_disconnect() to cover MLD cases ended
up calling ieee802_1x_free_station() from the step function in the EAPOL
authenticator state machine in case of EAP timeout and by doing so,
ended up leaving the EAPOL state machine operations continuing to be run
on freed memory.

Fix this by leaving the EAPOL state machine allocated when going through
all the other ap_sta_disconnect() steps so that the possible ongoing
operations can be finished safely before freeing memory. Actual freeing
of the state machine happens when freeing the full STA entry in the same
way that was used previously.

Fixes: 01677c47fb13 ("AP: Support disconnect with MLD")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/sta_info.c