]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/drv_callbacks.c
hostapd: Check that EVENT_ASSOC data is present before using it
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 26 Aug 2014 14:23:02 +0000 (17:23 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 26 Aug 2014 14:23:02 +0000 (17:23 +0300)
commit04a258e7c56202ca285dd4d9459fdb45754401fe
treefb2bbd92ee7a73e8f60a34e82cc84e5c409c3497
parent1cc0d6a0eb0e640a4853bfd05b5033c22fc60c73
hostapd: Check that EVENT_ASSOC data is present before using it

While hostapd should not really receive the EVENT_ASSOC message for
IBSS, driver_nl80211.c could potentially generate that if something
external forces the interface into IBSS mode and the IBSS case does not
provide the struct assoc_info data. Avoid the potential NULL pointer
dereference by explicitly verifying for the event data to be present.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/drv_callbacks.c