mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
TDLS: Fix add/set STA operation
Commit a9a1d0f08a
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>
This commit is contained in:
parent
cd8db7c3ba
commit
b8df43dec6
@ -557,6 +557,8 @@ static int wpa_supplicant_tdls_peer_addset(
|
|||||||
struct wpa_supplicant *wpa_s = ctx;
|
struct wpa_supplicant *wpa_s = ctx;
|
||||||
struct hostapd_sta_add_params params;
|
struct hostapd_sta_add_params params;
|
||||||
|
|
||||||
|
os_memset(¶ms, 0, sizeof(params));
|
||||||
|
|
||||||
params.addr = peer;
|
params.addr = peer;
|
||||||
params.aid = 1;
|
params.aid = 1;
|
||||||
params.capability = capability;
|
params.capability = capability;
|
||||||
|
Loading…
Reference in New Issue
Block a user