]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
bind getAllDomains: ignore per-zone exceptions 8229/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 20 Aug 2019 08:42:23 +0000 (10:42 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 26 Aug 2019 08:49:07 +0000 (10:49 +0200)
(cherry picked from commit 4d6afd412afd1999fba810ab2b2dabbbf3eb9258)

modules/bindbackend/bindbackend2.cc

index 636a97af6eb6392a63cbb0abcaf6546da8e5ba3a..e079448d19846fb25715f7117a749d30513c472c 100644 (file)
@@ -373,7 +373,11 @@ void Bind2Backend::getAllDomains(vector<DomainInfo> *domains, bool include_disab
     // do not corrupt di if domain supplied by another backend.
     if (di.backend != this)
       continue;
-    this->getSOA(di.zone, soadata);
+    try {
+      this->getSOA(di.zone, soadata);
+    } catch(...) {
+      continue;
+    }
     di.serial=soadata.serial;
   }
 }