Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 2009 16:58:05 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188316 - head/lib/libc/net
Message-ID:  <200902081658.n18Gw5hN028634@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902081658.n18Gw5hN028634>