diff options
Diffstat (limited to 'contrib/bind/lib/inet/inet_cidr_pton.c')
-rw-r--r-- | contrib/bind/lib/inet/inet_cidr_pton.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/bind/lib/inet/inet_cidr_pton.c b/contrib/bind/lib/inet/inet_cidr_pton.c index 4fae2c6..9ead90b 100644 --- a/contrib/bind/lib/inet/inet_cidr_pton.c +++ b/contrib/bind/lib/inet/inet_cidr_pton.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: inet_cidr_pton.c,v 8.3 1999/01/08 19:23:41 vixie Exp $"; +static const char rcsid[] = "$Id: inet_cidr_pton.c,v 8.4 2000/12/23 08:14:53 vixie Exp $"; #endif #include "port_before.h" @@ -122,11 +122,12 @@ inet_cidr_pton_ipv4(const char *src, u_char *dst, int *pbits) { goto enoent; /* Prefix length can default to /32 only if all four octets spec'd. */ - if (bits == -1) + if (bits == -1) { if (dst - odst == 4) bits = 32; else goto enoent; + } /* If nothing was written to the destination, we found no address. */ if (dst == odst) |