Fix a really lame buglet which broke with IPs of 34
(ERANGE...)
This commit is contained in:
parent
65fc10d2c1
commit
433a027b0e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52820
@ -111,7 +111,7 @@ inet_aton(cp, addr)
|
||||
errno = 0;
|
||||
val = strtoul(c, &endptr, 0);
|
||||
|
||||
if (val == ERANGE) /* Fail completely if it overflowed. */
|
||||
if (errno == ERANGE) /* Fail completely if it overflowed. */
|
||||
return (0);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user