]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Also set ordername on delegate below delegate
authorRuben d'Arco <cyclops@prof-x.net>
Thu, 16 May 2013 19:46:06 +0000 (21:46 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:26:19 +0000 (17:26 +0200)
pdns/rfc2136handler.cc

index ce4222f2e0b23d3cf119a0103829b5ac11384274..5fd1f28028be19ef637228f4f7e60ae2952c8e32 100644 (file)
@@ -340,10 +340,12 @@ uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord *
         if (!i->qtype.getCode()) {// for ENT records, we want to reset things as they have ordername=NULL and auth=NULL
           di->backend->nullifyDNSSECOrderNameAndUpdateAuth(di->id, i->qname, i->auth);
         } else { // all other records are simply updated.
-          for (vector<string>::const_iterator x = delegates.begin(); x != delegates.end(); x++) {
-            if (*x != i->qname && endsOn(i->qname, *x)) {
-              isBelowDelegate = true;
-              break;
+          if (i->qtype != QType::NS) { // skip NS records, as they always have a ordername
+            for (vector<string>::const_iterator x = delegates.begin(); x != delegates.end(); x++) {
+              if (endsOn(i->qname, *x)) {
+                isBelowDelegate = true;
+                break;
+              }
             }
           }
           if (isBelowDelegate)