Detect "...4" earlier.
This commit is contained in:
parent
83272cdb5a
commit
f861716608
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ isinetaddr(const char *str)
|
||||||
if (str[l] == '.') {
|
if (str[l] == '.') {
|
||||||
if (!inrange(buf)) {
|
if (!inrange(buf)) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if(j > 1 && i == 0) {
|
} else if(j == 1 && i == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
k = 0;
|
k = 0;
|
||||||
|
|
Loading…
Reference in a new issue