diff --git a/core/rtw_wlan_util.c b/core/rtw_wlan_util.c index 879f8f2..5e4759f 100755 --- a/core/rtw_wlan_util.c +++ b/core/rtw_wlan_util.c @@ -1359,6 +1359,8 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) } bssid = (WLAN_BSSID_EX *)rtw_zmalloc(sizeof(WLAN_BSSID_EX)); + if (!bssid) + return _FAIL; subtype = GetFrameSubType(pframe) >> 4;