diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/gethostnamadr.c | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index 423fb906b8..3ac5049e72 100644 --- a/src/lib/libc/net/gethostnamadr.c +++ b/src/lib/libc/net/gethostnamadr.c | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | */ | 52 | */ | 
| 53 | 53 | ||
| 54 | #if defined(LIBC_SCCS) && !defined(lint) | 54 | #if defined(LIBC_SCCS) && !defined(lint) | 
| 55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.51 2002/07/30 00:45:19 deraadt Exp $"; | 55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.52 2002/08/22 16:35:37 itojun Exp $"; | 
| 56 | #endif /* LIBC_SCCS and not lint */ | 56 | #endif /* LIBC_SCCS and not lint */ | 
| 57 | 57 | ||
| 58 | #include <sys/param.h> | 58 | #include <sys/param.h> | 
| @@ -363,6 +363,14 @@ getanswer(answer, anslen, qname, qtype) | |||
| 363 | cp += n; | 363 | cp += n; | 
| 364 | continue; | 364 | continue; | 
| 365 | } | 365 | } | 
| 366 | if (type == T_AAAA) { | ||
| 367 | struct in6_addr in6; | ||
| 368 | memcpy(&in6, cp, IN6ADDRSZ); | ||
| 369 | if (IN6_IS_ADDR_V4MAPPED(&in6)) { | ||
| 370 | cp += n; | ||
| 371 | continue; | ||
| 372 | } | ||
| 373 | } | ||
| 366 | if (!haveanswer) { | 374 | if (!haveanswer) { | 
| 367 | register int nn; | 375 | register int nn; | 
| 368 | 376 | ||
