diff options
| author | assar <assar@NetBSD.org> | 1999-12-28 15:47:41 +0000 |
|---|---|---|
| committer | assar <assar@NetBSD.org> | 1999-12-28 15:47:41 +0000 |
| commit | 8f5685ec6bf4c1aaeeba6675cd8c5aa4635bc319 (patch) | |
| tree | 085f461221eb3e3c3469d5296c62c5d923d244e0 /lib | |
| parent | a1da0497d257e351cc1ea7088bd9a6b6692d4600 (diff) | |
ignore KEY and SIG records when matching responses to the query. we
get those as extras from DNSsec-enabled name servers.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/net/gethnamaddr.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/net/gethnamaddr.c b/lib/libc/net/gethnamaddr.c index d3b24020c66..73d4b56009e 100644 --- a/lib/libc/net/gethnamaddr.c +++ b/lib/libc/net/gethnamaddr.c @@ -1,4 +1,4 @@ -/* $NetBSD: gethnamaddr.c,v 1.27 1999/10/24 12:36:02 lukem Exp $ */ +/* $NetBSD: gethnamaddr.c,v 1.28 1999/12/28 15:47:41 assar Exp $ */ /* * ++Copyright++ 1985, 1988, 1993 @@ -61,7 +61,7 @@ static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp "; #else -__RCSID("$NetBSD: gethnamaddr.c,v 1.27 1999/10/24 12:36:02 lukem Exp $"); +__RCSID("$NetBSD: gethnamaddr.c,v 1.28 1999/12/28 15:47:41 assar Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -356,10 +356,11 @@ getanswer(answer, anslen, qname, qtype) continue; } if (type != qtype) { - syslog(LOG_NOTICE|LOG_AUTH, + if (type != T_KEY && type != T_SIG) + syslog(LOG_NOTICE|LOG_AUTH, "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"", - qname, p_class(C_IN), p_type(qtype), - p_type(type)); + qname, p_class(C_IN), p_type(qtype), + p_type(type)); cp += n; continue; /* XXX - had_error++ ? */ } |
