]> granicus.if.org Git - pdns/commitdiff
bind getAllDomains: ignore per-zone exceptions
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>
Tue, 20 Aug 2019 08:42:23 +0000 (10:42 +0200)
modules/bindbackend/bindbackend2.cc

index cc89bff385971a51ca523f877d2bfc126d2408b6..ff305a7e8ba921abd46ca273f7d2896f05c5487e 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;
   }
 }