Fix a really lame buglet which broke with IPs of 34

(ERANGE...)
This commit is contained in:
Brian Feldman 1999-11-03 04:18:34 +00:00
parent 65fc10d2c1
commit 433a027b0e

View File

@ -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);
/*