]> granicus.if.org Git - pdns/commitdiff
auth: xternal child zones did confuse getAuth() for qytpe DS
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 12 Jul 2017 19:29:52 +0000 (21:29 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 26 Jul 2017 17:17:54 +0000 (19:17 +0200)
pdns/ueberbackend.cc

index 008f2814445858372339f06ff3267026b5e59664..40665bea1ccdfcc0dc027860bde66d00cf344e16 100644 (file)
@@ -337,7 +337,6 @@ bool UeberBackend::getAuth(const DNSName &target, const QType& qtype, SOAData* s
         DNSZoneRecord rr;
         rr.dr.d_name = sd->qname;
         rr.dr.d_type = QType::SOA;
-        
         rr.dr.d_content = makeSOAContent(*sd);
         rr.dr.d_ttl = sd->ttl;
         rr.domain_id = sd->domain_id;
@@ -347,7 +346,7 @@ bool UeberBackend::getAuth(const DNSName &target, const QType& qtype, SOAData* s
     }
 
 found:
-    if(found == (qtype == QType::DS)){
+    if(found == (qtype == QType::DS) || target != choppedOff) {
       DLOG(L<<Logger::Error<<"found: "<<sd->qname<<endl);
       return true;
     } else {