mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Avoid unsigned vs. signed comparison warning
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2f06bcb361
commit
bd43e67e59
@ -292,7 +292,7 @@ int wifi_display_subelem_set_from_ies(struct wpa_global *global,
|
||||
wpa_printf(MSG_DEBUG, "WFD Sub-Element ID %d - len %d",
|
||||
*pos, len - 3);
|
||||
|
||||
if (len > end - pos)
|
||||
if (len > (unsigned int) (end - pos))
|
||||
break;
|
||||
|
||||
subelem = *pos;
|
||||
|
Loading…
Reference in New Issue
Block a user