]> granicus.if.org Git - pdns/commitdiff
DS records really are always auth=1. Warty.
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 27 Apr 2011 15:39:53 +0000 (15:39 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 27 Apr 2011 15:39:53 +0000 (15:39 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2183 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/packethandler.cc

index c6bd481c14746d8efd8bb966e3620f24788bb2d4..8f906ef4d3c303dd8369b2cff365a4d266ec8761 100644 (file)
@@ -1276,6 +1276,8 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
     weDone=weRedirected=weHaveUnauth=0;
     
     while(B.get(rr)) {
+      if(rr.qtype.getCode() == QType::DS)
+        rr.auth = 1;
       // cerr<<"Auth: "<<rr.auth<<", "<<(rr.qtype == p->qtype)<<", "<<rr.qtype.getName()<<endl;
       if((p->qtype.getCode() == QType::ANY || rr.qtype == p->qtype) && rr.auth) 
         weDone=1;