Call inrange when we have an integer above 99

Anything below three digits couldn't be out of bounds.
This commit is contained in:
0x1eef 2023-08-25 21:31:04 -03:00
parent 799b301af4
commit e3c927ec91

View file

@ -25,7 +25,7 @@ isinetaddr(const char *str)
if (str[l] == '.') {
if (j == 1 && i == 0) {
return 0;
} else if (k > 0 && !inrange(buf)) {
} else if (k == 3 && !inrange(buf)) {
return 0;
} else {
k = 0;