]> git.ipfire.org Git - thirdparty/hostap.git/commit
Clear cached extended_capa pointers on hapd_deinit() call
authorJouni Malinen <jouni@codeaurora.org>
Fri, 26 Apr 2019 13:15:15 +0000 (16:15 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 26 Apr 2019 13:15:15 +0000 (16:15 +0300)
commitb9058266f01162cdc0720a0682d4f89e44cf054b
treea3edfff28bb328dda8ea01a3337ad14d2989c003
parentc48f44e17c273775a99f2b951e35bfd30269b0bc
Clear cached extended_capa pointers on hapd_deinit() call

driver->hapd_deinit() is going to free the memory that the cached
pointers are pointing to, so clear the pointers to avoid possibility of
dereferencing used memory. It seemed to be possible to hit a code path
using those fields by issuing a CHAN_SWITCH command on disabled hostapd
interface in some cases.

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