aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-02-14 16:23:33 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-14 19:01:07 (GMT)
commitb8df43dec61646812ecab5bb46f6aa369e6267e0 (patch)
treee282acc6ca6551052a28b81599b73137b603e004 /wpa_supplicant/wpas_glue.c
parentcd8db7c3ba207714d0b9d75da6d62677c99d0be1 (diff)
downloadhostap-b8df43dec61646812ecab5bb46f6aa369e6267e0.zip
hostap-b8df43dec61646812ecab5bb46f6aa369e6267e0.tar.gz
hostap-b8df43dec61646812ecab5bb46f6aa369e6267e0.tar.bz2
TDLS: Fix add/set STA operation
Commit a9a1d0f08aaf7c96f40def0d7966399b89b2a7c0 added vht_capabilities to struct hostapd_sta_add_params but forgot to update wpa_supplicant_tdls_peer_addset() to initialize the variable to NULL. This could result in uninitialized pointer being used in driver_nl80211.c when adding a TDLS peer entry. Fix this by clearing the hostapd_sta_add_params with memset. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index 4859774..e5e1f42 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -557,6 +557,8 @@ static int wpa_supplicant_tdls_peer_addset(
struct wpa_supplicant *wpa_s = ctx;
struct hostapd_sta_add_params params;
+ os_memset(&params, 0, sizeof(params));
+
params.addr = peer;
params.aid = 1;
params.capability = capability;