From 151bb9011f1b4591b8ddd4ca47f3c7c059cca711 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 14 Feb 2019 19:32:52 +0100 Subject: [PATCH] Add explicit memset call to avoid potentially corrupt data --- os_dep/linux/ioctl_cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index f32d7a9..4b010b7 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -4137,6 +4137,7 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f #if defined(RTW_USE_CFG80211_STA_EVENT) || defined(COMPAT_KERNEL_RELEASE) { struct station_info sinfo; + _rtw_memset(&sinfo, 0, sizeof(struct station_info)); u8 ie_offset; if (get_frame_sub_type(pmgmt_frame) == WIFI_ASSOCREQ) ie_offset = _ASOCREQ_IE_OFFSET_;