1
0
Fork 0
mirror of https://github.com/hufrea/byedpi.git synced 2025-03-07 09:35:42 +03:00

Fix --timeout

This commit is contained in:
ruti 2025-01-26 12:07:24 +03:00
parent d587fe2a20
commit 0985f13d39

4
main.c
View file

@ -25,7 +25,7 @@
#define close(fd) closesocket(fd)
#endif
#define VERSION "16.1"
#define VERSION "16.2"
ASSERT(sizeof(struct in_addr) == 4)
ASSERT(sizeof(struct in6_addr) == 16)
@ -812,7 +812,7 @@ int main(int argc, char **argv)
#else
val = strtol(optarg, &end, 0);
#endif
if (val <= 0 || val > (long)UINT_MAX || *end)
if (val <= 0 || (unsigned long)val > UINT_MAX || *end)
invalid = 1;
else
params.timeout = val;