mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
privsep: Fix a compiler warning on unsigned/signed comparison
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2e997eece5
commit
32d4fe9549
@ -161,7 +161,7 @@ wpa_driver_privsep_get_scan_results2(void *priv)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
while (results->num < (size_t) num && end - pos > sizeof(int)) {
|
||||
while (results->num < (size_t) num && end - pos > (int) sizeof(int)) {
|
||||
int len;
|
||||
os_memcpy(&len, pos, sizeof(int));
|
||||
pos += sizeof(int);
|
||||
|
Loading…
Reference in New Issue
Block a user