diff options
author | green <green@FreeBSD.org> | 1999-11-03 04:18:34 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-11-03 04:18:34 +0000 |
commit | 972efa99ba41f6eea3ee100f1595a762b6dde5cb (patch) | |
tree | c70b48a806433efcb269532725c116c00e70acf7 | |
parent | 9352858d9b23d9079fc5e73222f9fb26baa3e5ff (diff) | |
download | FreeBSD-src-972efa99ba41f6eea3ee100f1595a762b6dde5cb.zip FreeBSD-src-972efa99ba41f6eea3ee100f1595a762b6dde5cb.tar.gz |
Fix a really lame buglet which broke with IPs of 34
(ERANGE...)
-rw-r--r-- | lib/libc/net/inet_addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/inet_addr.c b/lib/libc/net/inet_addr.c index 8f6543c..75756aa 100644 --- a/lib/libc/net/inet_addr.c +++ b/lib/libc/net/inet_addr.c @@ -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); /* |