Detect "...4" earlier.

This commit is contained in:
0x1eef 2023-08-25 21:05:02 -03:00
parent 83272cdb5a
commit f861716608

View file

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