diff options
author | 1999-07-03 18:07:53 +0000 | |
---|---|---|
committer | 1999-07-03 18:07:53 +0000 | |
commit | 6da3dafd81b5c3818d8a40f854883590fb001533 (patch) | |
tree | ebc4bac5cd94b6f97258fdd7bcac7fadd6996ea8 | |
parent | spelling (diff) | |
download | wireguard-openbsd-6da3dafd81b5c3818d8a40f854883590fb001533.tar.xz wireguard-openbsd-6da3dafd81b5c3818d8a40f854883590fb001533.zip |
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; |