From 6a61a6bcaf79bc8a1da407b4509e33c0e860b1de Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Sat, 3 Jul 1999 18:07:54 +0000 Subject: Ignore SIGs in the answer section for now as we don't use them (yet). OK'd by deraadt. --- lib/libc/net/gethostnamadr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 @@ -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; -- cgit v1.2.3