Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net ignore KEY and SIG records when matching respon...
details: https://anonhg.NetBSD.org/src/rev/511899d30001
branches: trunk
changeset: 479950:511899d30001
user: assar <assar%NetBSD.org@localhost>
date: Tue Dec 28 15:47:41 1999 +0000
description:
ignore KEY and SIG records when matching responses to the query. we
get those as extras from DNSsec-enabled name servers.
diffstat:
lib/libc/net/gethnamaddr.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r efac803812dc -r 511899d30001 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c Tue Dec 28 13:49:20 1999 +0000
+++ b/lib/libc/net/gethnamaddr.c Tue Dec 28 15:47:41 1999 +0000
@@ -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 @@
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++ ? */
}
Home |
Main Index |
Thread Index |
Old Index