Fix: address of array 'sec->owe_ie' will always evaluate to 'true'

This commit is contained in:
Rin Cat 2020-08-02 06:06:12 -04:00
parent 9366542499
commit 548f9d0683
No known key found for this signature in database
GPG Key ID: 7E93675C2BDBB222

View File

@ -8994,7 +8994,7 @@ static u32 rtw_append_assoc_req_owe_ie(_adapter *adapter, u8 *pbuf)
if (sec == NULL)
goto exit;
if (sec->owe_ie && sec->owe_ie_len > 0) {
if (&(sec->owe_ie) != NULL && sec->owe_ie_len > 0) {
len = sec->owe_ie_len;
_rtw_memcpy(pbuf, sec->owe_ie, len);
}