diff options
| author | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2001-01-28 23:00:22 +0000 |
|---|---|---|
| committer | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2001-01-28 23:00:22 +0000 |
| commit | 98ff752a5eccf4070cf295e8dea83fa19a1dceb6 (patch) | |
| tree | 4c0925b2692b57db0c0c1044db977bbc4c0899d7 /contrib/bind/lib/inet/inet_cidr_pton.c | |
| parent | 8e14eeeb1dddd9ed0d491ac01cfb2c6acdf135f6 (diff) | |
Notes
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 4fae2c68fed0..9ead90b242d7 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) |
