]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix hostapd interface cleanup with multiple interfaces
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 18 Aug 2023 18:00:45 +0000 (21:00 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 18 Aug 2023 18:03:42 +0000 (21:03 +0300)
commitdd1330b502ffdb076abaef4f16764078dd2e4bf9
tree9aa472d2edcff12d49e38f5b8cc9b1f0b893aef3
parent7637d0f250539cabae74fa37da85b3b9d23c19b7
Fix hostapd interface cleanup with multiple interfaces

interfaces.iface[i] might be NULL when going through the cleanup of all
remaining interfaces at the end of the process termination. The changes
for clearing drv_priv in AP MLD cause that cleanup process to crash on
dereferencing a NULL pointer.

Fix this by explicitly checking that the interface context is available
before trying to clear the pointer to driver data.

Fixes: 7fa99b3246d1 ("AP: Allow starting multiple interfaces within single MLD")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/hostapd.c