From 185bd48df413b2f290b4b5ccd6fb5af7310ec8a3 Mon Sep 17 00:00:00 2001 From: ume Date: Sun, 8 Feb 2009 16:58:05 +0000 Subject: Shutup warning for DNAME RR. PR: bin/127591 Submitted by: "Eugene M. Kim" <20080111.freebsd.org__at__ab.ote.we.lv> MFC after: 1 week --- lib/libc/net/getaddrinfo.c | 3 ++- lib/libc/net/gethostbydns.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index ad35e87..941c315 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -1863,7 +1863,8 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, } } else if (type != qtype) { #ifdef DEBUG - if (type != T_KEY && type != T_SIG) + if (type != T_KEY && type != T_SIG && + type != ns_t_dname) syslog(LOG_NOTICE|LOG_AUTH, "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"", qname, p_class(C_IN), p_type(qtype), diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 2e3fe8d..ff93972 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -294,7 +294,7 @@ gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, continue; } if (type != qtype) { - if (type != T_SIG) + if (type != T_SIG && type != ns_t_dname) syslog(LOG_NOTICE|LOG_AUTH, "gethostby*.gethostanswer: asked for \"%s %s %s\", got type \"%s\"", qname, p_class(C_IN), p_type(qtype), -- cgit v1.1