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
This commit is contained in:
ume 2009-02-08 16:58:05 +00:00
parent 1d82f9d188
commit 185bd48df4
2 changed files with 3 additions and 2 deletions

View File

@ -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),

View File

@ -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),