rpms/pdns/devel pdns-bz461768.patch,NONE,1.1 pdns.spec,1.11,1.12

Ruben Kerkhof ruben at fedoraproject.org
Fri Sep 12 13:06:50 UTC 2008


Author: ruben

Update of /cvs/pkgs/rpms/pdns/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24100

Modified Files:
	pdns.spec 
Added Files:
	pdns-bz461768.patch 
Log Message:
* Fri Sep 12 2008 Ruben Kerkhof <ruben at rubenkerkhof.com> 2.9.21.1-2
- Fix handling of AAAA records (bz #461768)


pdns-bz461768.patch:

--- NEW FILE pdns-bz461768.patch ---
Index: /trunk/pdns/pdns/packethandler.cc
===================================================================
--- /trunk/pdns/pdns/packethandler.cc (revision 1079)
+++ /trunk/pdns/pdns/packethandler.cc (revision 1081)
@@ -399,6 +399,8 @@
       }
     }
-    if(hits && !found && !rfound && shortcut ) // we found matching qnames but not a qtype
+    if(hits && !found && !rfound && shortcut ) { // we found matching qnames but not a qtype
+      DLOG(L<<"Found matching qname, but not the qtype"<<endl);
       return 2;
+    }
 
     if(rfound)
@@ -654,4 +656,5 @@
 
     if(mret==2) { // there is some data, but not of the correct type
+      r->clearRecords();
       DLOG(L<<"There is some data, but not of the correct type, adding SOA for NXRECORDSET"<<endl);
       SOAData sd;
@@ -696,5 +699,4 @@
       }
     }
-
     noSameLevelNS=true;
 
@@ -739,5 +741,5 @@
     // not found yet, try wildcards (we only try here in case of recursion - we should check before we hand off)
 
-    if(p->d.rd && d_doRecursion && d_doWildcards) { 
+    if(mret != 2 && p->d.rd && d_doRecursion && d_doWildcards) { 
       int res=doWildcardRecords(p,r,target);
       if(res) { // had a result


Index: pdns.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pdns/devel/pdns.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- pdns.spec	6 Aug 2008 13:14:27 -0000	1.11
+++ pdns.spec	12 Sep 2008 13:06:19 -0000	1.12
@@ -1,7 +1,7 @@
 Summary:	A modern, advanced and high performance authoritative-only nameserver
 Name:		pdns
 Version:	2.9.21.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 
 Group:		System Environment/Daemons
 License:	GPLv2
@@ -11,6 +11,7 @@
 Patch0:		%{name}-fixinit.patch
 Patch1:		%{name}-avoid-version.patch
 Patch2:		%{name}-gcc43.patch
+Patch3:         %{name}-bz461768.patch
 
 Requires(post):	%{_sbindir}/useradd, /sbin/chkconfig
 Requires(preun):	/sbin/service, /sbin/chkconfig
@@ -84,6 +85,7 @@
 %patch0 -p1 -b .fixinit
 %patch1 -p1 -b .avoid-version
 %patch2 -p1
+%patch3 -p3
 
 %build
 export CPPFLAGS="-DLDAP_DEPRECATED %{optflags}"
@@ -183,6 +185,9 @@
 
 
 %changelog
+* Fri Sep 12 2008 Ruben Kerkhof <ruben at rubenkerkhof.com> 2.9.21.1-2
+- Fix handling of AAAA records (bz #461768)
+
 * Wed Aug 06 2008 Ruben Kerkhof <ruben at rubenkerkhof.com> 2.9.21.1-1
 - CVE-2008-3337
 




More information about the fedora-extras-commits mailing list