summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMike Pritchard <mpp@FreeBSD.org>1996-02-17 21:11:36 +0000
committerMike Pritchard <mpp@FreeBSD.org>1996-02-17 21:11:36 +0000
commit48194b7e82af91598b8e4f1caae98494452aedd9 (patch)
tree7a6e844dcd9de5a820277286d2d87c641d9fbd56 /lib/libc
parentb227eb61e39e055f1210813c9c88d661cb0b713c (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/inet_network.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/net/inet_network.c b/lib/libc/net/inet_network.c
index fda53b6ecc61..c3a96a64e54e 100644
--- a/lib/libc/net/inet_network.c
+++ b/lib/libc/net/inet_network.c
@@ -74,7 +74,7 @@ again:
break;
}
if (*cp == '.') {
- if (pp >= parts + 4)
+ if (pp >= parts + 3)
return (INADDR_NONE);
*pp++ = val, cp++;
goto again;
@@ -83,8 +83,6 @@ again:
return (INADDR_NONE);
*pp++ = val;
n = pp - parts;
- if (n > 4)
- return (INADDR_NONE);
for (val = 0, i = 0; i < n; i++) {
val <<= 8;
val |= parts[i] & 0xff;