summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2009-02-08 16:58:05 +0000
committerume <ume@FreeBSD.org>2009-02-08 16:58:05 +0000
commit185bd48df413b2f290b4b5ccd6fb5af7310ec8a3 (patch)
tree193e42a4f98dce7a031da3d0bee1e3595e961832 /lib
parent1d82f9d188f6faaceb287719291ae2eaf33221a6 (diff)
downloadFreeBSD-src-185bd48df413b2f290b4b5ccd6fb5af7310ec8a3.zip
FreeBSD-src-185bd48df413b2f290b4b5ccd6fb5af7310ec8a3.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/getaddrinfo.c3
-rw-r--r--lib/libc/net/gethostbydns.c2
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),
OpenPOWER on IntegriCloud