Call inrange when we have an integer above 99
Anything below three digits couldn't be out of bounds.
This commit is contained in:
parent
799b301af4
commit
e3c927ec91
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue