svn commit: r188691 - in stable/6/lib/libc: . inet net sys

Hajimu UMEMOTO ume at FreeBSD.org
Mon Feb 16 10:32:35 PST 2009


Author: ume
Date: Mon Feb 16 18:32:28 2009
New Revision: 188691
URL: http://svn.freebsd.org/changeset/base/188691

Log:
  MFH 188316: Shutup warning for DNAME RR.
  
  PR:		bin/127591
  Submitted by:	"Eugene M. Kim" <20080111.freebsd.org__at__ab.ote.we.lv>

Modified:
  stable/6/lib/libc/   (props changed)
  stable/6/lib/libc/inet/inet_net_pton.c   (props changed)
  stable/6/lib/libc/net/getaddrinfo.c
  stable/6/lib/libc/net/gethostbydns.c
  stable/6/lib/libc/sys/   (props changed)

Modified: stable/6/lib/libc/net/getaddrinfo.c
==============================================================================
--- stable/6/lib/libc/net/getaddrinfo.c	Mon Feb 16 18:24:48 2009	(r188690)
+++ stable/6/lib/libc/net/getaddrinfo.c	Mon Feb 16 18:32:28 2009	(r188691)
@@ -1686,7 +1686,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: stable/6/lib/libc/net/gethostbydns.c
==============================================================================
--- stable/6/lib/libc/net/gethostbydns.c	Mon Feb 16 18:24:48 2009	(r188690)
+++ stable/6/lib/libc/net/gethostbydns.c	Mon Feb 16 18:32:28 2009	(r188691)
@@ -298,7 +298,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-stable-6 mailing list