From 7ea38f347992e5e9ded4d74732986ab70637d81d Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Tue, 28 Dec 1999 07:21:08 +0000 Subject: [PATCH] Suppress vast quantities of unneeded warnings spewed by libc's gethostbydns on encountering a real-world SIG record during a lookup of another type. PR: bin/7352 Reviewed by: peter, eivind --- lib/libc/net/gethostbydns.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index bd1f181c7bd6..a77b65df363c 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -310,10 +310,11 @@ gethostanswer(answer, anslen, qname, qtype) continue; } if (type != qtype) { - syslog(LOG_NOTICE|LOG_AUTH, + if (type != T_SIG) + syslog(LOG_NOTICE|LOG_AUTH, "gethostby*.gethostanswer: 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++ ? */ }