Fix hostapd segfault on beacon hint event
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 3 Feb 2014 11:24:50 +0000 (13:24 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 3 Feb 2014 17:34:59 +0000 (19:34 +0200)
commit8597ebdbd44dd4dfb680a17a1d71c183377a0223
tree0cd4287bac970277e54405c701ffcd0f41077ca3
parentc69ed4dd494dd9764651188590e92c4dfd936324
Fix hostapd segfault on beacon hint event

Commit 795baf773f6d53bae3cfae4df6edda63e5022344 ('hostapd: Filter
channel list updated events after country code change') uses the
EVENT_CHANNEL_LIST_CHANGED data pointer, but it updated only one of the
callers to provide that data. NL80211_CMD_REG_BEACON_HINT event was
still sending the event without the initiator data and resulted in NULL
pointer dereference, e.g., if a scan was run while hostapd was running
and the driver was in world roaming state and enabled a channel for
active scans.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver.h
src/drivers/driver_nl80211.c