]> granicus.if.org Git - pdns/commitdiff
when explicitly asking for an NSEC, we should not do a 'relative' pointer to the...
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 4 Jan 2011 19:57:22 +0000 (19:57 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 4 Jan 2011 19:57:22 +0000 (19:57 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1806 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/packethandler.cc

index 92a4c01099b7ef2c06817a2b45d4de339fa8ee78..dcebf846102600320f1ab01c363e6e4b76ff207e 100644 (file)
@@ -1200,7 +1200,7 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
 
     // this TRUMPS a cname!
     if(p->qtype.getCode() == QType::NSEC && p->d_dnssecOk) {
-      addNSEC(p, r, target, "", 2); // only NSEC please
+      addNSEC(p, r, target, sd.qname, 2); // only NSEC please
       goto sendit;
     }