]> granicus.if.org Git - pdns/commitdiff
bindbackend: do not corrupt data supplied by other backends in getAllDomains
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Sat, 29 Oct 2016 14:01:32 +0000 (16:01 +0200)
committerChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Mon, 31 Oct 2016 08:48:10 +0000 (09:48 +0100)
modules/bindbackend/bindbackend2.cc

index 53c0db16fcc74f029c38d8d116dc023934ad13fc..c73f89f6e9410a8806b564ad3aa9a5d5edb72a68 100644 (file)
@@ -356,8 +356,11 @@ void Bind2Backend::getAllDomains(vector<DomainInfo> *domains, bool include_disab
       domains->push_back(di);
     };
   }
+
   for(DomainInfo &di :  *domains) {
+    // do not corrupt di if domain supplied by another backend.
+    if (di.backend != this)
+      continue;
     this->getSOA(di.zone, soadata);
     di.serial=soadata.serial;
   }