aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2013-11-22 20:21:25 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-22 21:21:43 (GMT)
commit80ed037f00d90b14d26c581387d908a945eda04e (patch)
treeb0343c7c7cb1d647cf21b0844d9230fce70c6d02
parent982189632fe8ef4a885a82257cd90e0dc26a17ce (diff)
downloadhostap-80ed037f00d90b14d26c581387d908a945eda04e.zip
hostap-80ed037f00d90b14d26c581387d908a945eda04e.tar.gz
hostap-80ed037f00d90b14d26c581387d908a945eda04e.tar.bz2
Clear beacon_data before usage
struct beacon_data contains a lot of pointers. Make sure it gets cleared to zero if hostapd_build_beacon_data() gets called from a path that does not clear the structure first. Signed-hostap: Janusz Dziedzic <janusz.dziedzic@tieto.com>
-rw-r--r--src/ap/hostapd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index 69e8956..efaae85 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -2049,6 +2049,7 @@ static int hostapd_build_beacon_data(struct hostapd_iface *iface,
int ret;
struct hostapd_data *hapd = iface->bss[0];
+ os_memset(beacon, 0, sizeof(*beacon));
ret = ieee802_11_build_ap_params(hapd, &params);
if (ret < 0)
return ret;