mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
wlantest: Use proper cmd length in fetching STA list
This commit is contained in:
parent
ef6ee3e5a3
commit
0954399c90
@ -206,7 +206,7 @@ static char ** get_sta_list(int s, const u8 *bssid, int add_bcast)
|
|||||||
pos = attr_hdr_add(pos, end, WLANTEST_ATTR_BSSID, ETH_ALEN);
|
pos = attr_hdr_add(pos, end, WLANTEST_ATTR_BSSID, ETH_ALEN);
|
||||||
os_memcpy(pos, bssid, ETH_ALEN);
|
os_memcpy(pos, bssid, ETH_ALEN);
|
||||||
pos += ETH_ALEN;
|
pos += ETH_ALEN;
|
||||||
rlen = cmd_send_and_recv(s, buf, sizeof(buf), resp, sizeof(resp));
|
rlen = cmd_send_and_recv(s, buf, pos - buf, resp, sizeof(resp));
|
||||||
if (rlen < 0)
|
if (rlen < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user