]> granicus.if.org Git - pdns/commitdiff
bindbackend: don't crash on syntax errors in bind-config
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 30 Nov 2015 15:16:00 +0000 (16:16 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 30 Nov 2015 15:16:00 +0000 (16:16 +0100)
modules/bindbackend/bindbackend2.cc

index a8b71d32e0ef374a1ca0d388bd0837b7f299c19c..50a2fc1611b7405bfcea18f950a81b1d63d91847 100644 (file)
@@ -740,7 +740,7 @@ void Bind2Backend::loadConfig(string* status)
     }
     catch(PDNSException &ae) {
       L<<Logger::Error<<"Error parsing bind configuration: "<<ae.reason<<endl;
-      throw;
+      return;
     }
       
     vector<BindDomainInfo> domains=BP.getDomains();