svn commit: r188316 - head/lib/libc/net
Hajimu UMEMOTO
ume at FreeBSD.org
Sun Feb 8 08:58:05 PST 2009
Author: ume
Date: Sun Feb 8 16:58:05 2009
New Revision: 188316
URL: http://svn.freebsd.org/changeset/base/188316
Log:
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
Modified:
head/lib/libc/net/getaddrinfo.c
head/lib/libc/net/gethostbydns.c
Modified: head/lib/libc/net/getaddrinfo.c
==============================================================================
--- head/lib/libc/net/getaddrinfo.c Sun Feb 8 15:38:31 2009 (r188315)
+++ head/lib/libc/net/getaddrinfo.c Sun Feb 8 16:58:05 2009 (r188316)
@@ -1863,7 +1863,8 @@ getanswer(const querybuf *answer, int an
}
} 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),
Modified: head/lib/libc/net/gethostbydns.c
==============================================================================
--- head/lib/libc/net/gethostbydns.c Sun Feb 8 15:38:31 2009 (r188315)
+++ head/lib/libc/net/gethostbydns.c Sun Feb 8 16:58:05 2009 (r188316)
@@ -294,7 +294,7 @@ gethostanswer(const querybuf *answer, in
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),
More information about the svn-src-all
mailing list