]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Fix operations after SAE state machine removing the STA
authorJouni Malinen <jouni@codeaurora.org>
Mon, 15 Apr 2019 19:09:12 +0000 (22:09 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2019 19:09:12 +0000 (22:09 +0300)
commit10cf866bac4b8e7cc41ca6af37938f6591e0b647
tree34903f51209c64f4f8c8e73d379462e52599c7d7
parent153d4c501a8231604dd8b98514924f2698c5449e
mesh: Fix operations after SAE state machine removing the STA

It is possible for the SAE state machine to remove the STA and free the
sta pointer in the mesh use cases. handle_auth_sae() could have
dereferenced that pointer and used freed memory in some cases. Fix that
by explicitly checking whether the STA was removed.

Fixes: bb598c3bdd06 ("AP: Add support for full station state")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/ieee802_11.c