diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 1999-07-03 18:07:54 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 1999-07-03 18:07:54 +0000 |
commit | 6a61a6bcaf79bc8a1da407b4509e33c0e860b1de (patch) | |
tree | 3d1dd26cd30841e53193170854cbdd02b55816a1 | |
parent | 64d16e9927a891cbd478c8872703b844572150d9 (diff) |
Ignore SIGs in the answer section for now as we don't use them (yet).
OK'd by deraadt.
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 024b7f44e54..cd6a7dc894c 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -52,7 +52,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.35 1999/06/04 06:38:10 niklas Exp $"; +static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.36 1999/07/03 18:07:53 jakob Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -249,6 +249,11 @@ getanswer(answer, anslen, qname, qtype) cp += INT16SZ + INT32SZ; /* class, TTL */ n = _getshort(cp); cp += INT16SZ; /* len */ + if (type == T_SIG) { + /* XXX - ignore signatures as we don't use them yet */ + cp += n; + continue; + } if (class != C_IN) { /* XXX - debug? syslog? */ cp += n; |