svn commit: r188690 - in stable/7/lib/libc: . net string

Hajimu UMEMOTO ume at FreeBSD.org
Mon Feb 16 10:24:50 PST 2009


Author: ume
Date: Mon Feb 16 18:24:48 2009
New Revision: 188690
URL: http://svn.freebsd.org/changeset/base/188690

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/7/lib/libc/   (props changed)
  stable/7/lib/libc/net/getaddrinfo.c
  stable/7/lib/libc/net/gethostbydns.c
  stable/7/lib/libc/string/ffsll.c   (props changed)
  stable/7/lib/libc/string/flsll.c   (props changed)

Modified: stable/7/lib/libc/net/getaddrinfo.c
==============================================================================
--- stable/7/lib/libc/net/getaddrinfo.c	Mon Feb 16 18:07:23 2009	(r188689)
+++ stable/7/lib/libc/net/getaddrinfo.c	Mon Feb 16 18:24:48 2009	(r188690)
@@ -1884,7 +1884,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/7/lib/libc/net/gethostbydns.c
==============================================================================
--- stable/7/lib/libc/net/gethostbydns.c	Mon Feb 16 18:07:23 2009	(r188689)
+++ stable/7/lib/libc/net/gethostbydns.c	Mon Feb 16 18:24:48 2009	(r188690)
@@ -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-stable-7 mailing list