mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-26 01:51:34 +00:00
Fix: address of array 'sec->owe_ie' will always evaluate to 'true'
This commit is contained in:
parent
9366542499
commit
548f9d0683
@ -8994,7 +8994,7 @@ static u32 rtw_append_assoc_req_owe_ie(_adapter *adapter, u8 *pbuf)
|
|||||||
if (sec == NULL)
|
if (sec == NULL)
|
||||||
goto exit;
|
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;
|
len = sec->owe_ie_len;
|
||||||
_rtw_memcpy(pbuf, sec->owe_ie, len);
|
_rtw_memcpy(pbuf, sec->owe_ie, len);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user