summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbydns.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>1999-12-28 07:21:08 +0000
committerrwatson <rwatson@FreeBSD.org>1999-12-28 07:21:08 +0000
commit425c15d62c595f2d72c762761a0a2f2d77117e5a (patch)
tree443459ba78e31abc7d38081f189d0dd1cfe7db14 /lib/libc/net/gethostbydns.c
parenta9559776cd1cef38633da2479c9078b728e97bd2 (diff)
downloadFreeBSD-src-425c15d62c595f2d72c762761a0a2f2d77117e5a.zip
FreeBSD-src-425c15d62c595f2d72c762761a0a2f2d77117e5a.tar.gz
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
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r--lib/libc/net/gethostbydns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c
index bd1f181..a77b65d 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++ ? */
}
OpenPOWER on IntegriCloud