wext: Check hexstr2bin() return value
This commit is contained in:
parent
68fd595fa5
commit
fbe3e7f840
1 changed files with 5 additions and 5 deletions
|
@ -257,9 +257,9 @@ wpa_driver_wext_event_wireless_custom(void *ctx, char *custom)
|
||||||
bytes /= 2;
|
bytes /= 2;
|
||||||
|
|
||||||
req_ies = os_malloc(bytes);
|
req_ies = os_malloc(bytes);
|
||||||
if (req_ies == NULL)
|
if (req_ies == NULL ||
|
||||||
return;
|
hexstr2bin(spos, req_ies, bytes) < 0)
|
||||||
hexstr2bin(spos, req_ies, bytes);
|
goto done;
|
||||||
data.assoc_info.req_ies = req_ies;
|
data.assoc_info.req_ies = req_ies;
|
||||||
data.assoc_info.req_ies_len = bytes;
|
data.assoc_info.req_ies_len = bytes;
|
||||||
|
|
||||||
|
@ -277,9 +277,9 @@ wpa_driver_wext_event_wireless_custom(void *ctx, char *custom)
|
||||||
bytes /= 2;
|
bytes /= 2;
|
||||||
|
|
||||||
resp_ies = os_malloc(bytes);
|
resp_ies = os_malloc(bytes);
|
||||||
if (resp_ies == NULL)
|
if (resp_ies == NULL ||
|
||||||
|
hexstr2bin(spos, resp_ies, bytes) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
hexstr2bin(spos, resp_ies, bytes);
|
|
||||||
data.assoc_info.resp_ies = resp_ies;
|
data.assoc_info.resp_ies = resp_ies;
|
||||||
data.assoc_info.resp_ies_len = bytes;
|
data.assoc_info.resp_ies_len = bytes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue