diff options
author | jakob <> | 1999-07-03 18:07:53 +0000 |
---|---|---|
committer | jakob <> | 1999-07-03 18:07:53 +0000 |
commit | 1ec483f7b70c12504c270c610cb3db3d4d8431ff (patch) | |
tree | 1ff612aa7b13774490c6094a1d8cf4ce497d3590 | |
parent | c0f12f3d76144922f40b5755e2bab94284cded7f (diff) | |
download | openbsd-1ec483f7b70c12504c270c610cb3db3d4d8431ff.tar.gz openbsd-1ec483f7b70c12504c270c610cb3db3d4d8431ff.tar.bz2 openbsd-1ec483f7b70c12504c270c610cb3db3d4d8431ff.zip |
Ignore SIGs in the answer section for now as we don't use them (yet).
OK'd by deraadt.
-rw-r--r-- | src/lib/libc/net/gethostnamadr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index 024b7f44e5..cd6a7dc894 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.35 1999/06/04 06:38:10 niklas Exp $"; | 55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.36 1999/07/03 18:07:53 jakob 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> |
@@ -249,6 +249,11 @@ getanswer(answer, anslen, qname, qtype) | |||
249 | cp += INT16SZ + INT32SZ; /* class, TTL */ | 249 | cp += INT16SZ + INT32SZ; /* class, TTL */ |
250 | n = _getshort(cp); | 250 | n = _getshort(cp); |
251 | cp += INT16SZ; /* len */ | 251 | cp += INT16SZ; /* len */ |
252 | if (type == T_SIG) { | ||
253 | /* XXX - ignore signatures as we don't use them yet */ | ||
254 | cp += n; | ||
255 | continue; | ||
256 | } | ||
252 | if (class != C_IN) { | 257 | if (class != C_IN) { |
253 | /* XXX - debug? syslog? */ | 258 | /* XXX - debug? syslog? */ |
254 | cp += n; | 259 | cp += n; |