]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Fix time_zone advertisement without time_zone configuration
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Mon, 28 May 2018 20:26:46 +0000 (22:26 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 31 May 2018 09:53:43 +0000 (12:53 +0300)
commitb375b04b673a7762a125dca5a8e9e2ba0c6b363c
treeae79d50ca1d6de66d6f898a2e1774b8f88b283d5
parent0928b62944ab168403b34dd7ea117b835640b0b7
WNM: Fix time_zone advertisement without time_zone configuration

If time_advertisement=2 is included in hostapd configuration, but
time_zone is unset, the previous implementation tried to write the Time
Zone element into management frames. This resulted in segmentation fault
when trying to dereference a NULL pointer. Fix that by skipping addition
of this element when time_zone parameter is not set.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
src/ap/ieee802_11_shared.c