mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
pcsc: Fix compiler warning on signed vs. unsigned comparison
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b1aebbc427
commit
1e49ccebf7
@ -1059,7 +1059,7 @@ int scard_get_mnc_len(struct scard_data *scard)
|
|||||||
wpa_printf(MSG_DEBUG, "SCARD: MNC length not available");
|
wpa_printf(MSG_DEBUG, "SCARD: MNC length not available");
|
||||||
return -7;
|
return -7;
|
||||||
}
|
}
|
||||||
if (file_size < 4 || file_size > sizeof(buf)) {
|
if (file_size < 4 || file_size > (int) sizeof(buf)) {
|
||||||
wpa_printf(MSG_DEBUG, "SCARD: invalid file length=%ld",
|
wpa_printf(MSG_DEBUG, "SCARD: invalid file length=%ld",
|
||||||
(long) file_size);
|
(long) file_size);
|
||||||
return -4;
|
return -4;
|
||||||
|
Loading…
Reference in New Issue
Block a user