remove redundant check.

This commit is contained in:
christos 2008-01-20 04:56:08 +00:00
parent 0b27d36fa7
commit 8c03790350
1 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: inet_network.c,v 1.3 2008/01/19 03:46:52 ginsbach Exp $ */
/* $NetBSD: inet_network.c,v 1.4 2008/01/20 04:56:08 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: inet_network.c,v 1.3 2008/01/19 03:46:52 ginsbach Exp $");
__RCSID("$NetBSD: inet_network.c,v 1.4 2008/01/20 04:56:08 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -102,8 +102,6 @@ again:
}
if (*cp && !isspace((u_char) *cp))
return (INADDR_NONE);
if (pp >= parts + 4 || val > 0xff)
return (INADDR_NONE);
*pp++ = val;
n = pp - parts;
if (n > 4)