]> granicus.if.org Git - pdns/commitdiff
set non-zero exit status in pdnssec if an exception was thrown
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 9 Feb 2014 23:30:36 +0000 (00:30 +0100)
committermind04 <mind04@monshouwer.org>
Tue, 11 Feb 2014 08:02:44 +0000 (09:02 +0100)
pdns/pdnssec.cc
regression-tests/pdns.conf

index a396a20c6d435e0630364dd8d937985f1320f253..837a8f7069f673b6a3b2529d8ec24b2b68015d03 100644 (file)
@@ -1774,8 +1774,10 @@ try
 }
 catch(PDNSException& ae) {
   cerr<<"Error: "<<ae.reason<<endl;
+  return 1;
 }
 catch(std::exception& e) {
   cerr<<"Error: "<<e.what()<<endl;
+  return 1;
 }
 
index 89f67e98ade76cbdab48b24e56c192025aa9266d..4f7e1b9630d4ed33516f9caa25a7ae2d04b3c27c 100644 (file)
@@ -2,3 +2,4 @@ socket-dir=./
 launch=bind
 bind-dnssec-db=./dnssec.sqlite3
 bind-config=./named.conf
+bind-ignore-broken-records=yes