]> granicus.if.org Git - pdns/commitdiff
jan piet mens discovered we neglected to put the NSEC3PARAM in outgoing AXFR.
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 16 Feb 2011 16:17:43 +0000 (16:17 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 16 Feb 2011 16:17:43 +0000 (16:17 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2028 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/tcpreceiver.cc

index c43b830ed8b62b2a69994df9edaa0d0baef6f2f9..fd2d8106341608bd86ae4e07e3f70a02c07c2ade 100644 (file)
@@ -559,6 +559,17 @@ int TCPNameserver::doAXFR(const string &target, shared_ptr<DNSPacket> q, int out
     ne.d_ttl = rr.ttl;
     csp.submit(rr);
   }
+
+  if(NSEC3Zone) { // now stuf in the NSEC3PARAM
+    rr.qtype = QType(QType::NSEC3PARAM);
+    rr.content = ns3pr.getZoneRepresentation();
+    
+    string keyname = hashQNameWithSalt(ns3pr.d_iterations, ns3pr.d_salt, rr.qname);
+    NSECXEntry& ne = nsecxrepo[keyname];
+    
+    ne.d_set.insert(rr.qtype.getCode());
+    csp.submit(rr);
+  }
   
   /* now write all other records */