]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix my check-all-zones fix 3162/head
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Mon, 4 Jan 2016 10:42:40 +0000 (11:42 +0100)
committerChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Mon, 11 Jan 2016 19:54:54 +0000 (20:54 +0100)
Which entirely disabled exit-on-error.

pdns/pdnsutil.cc

index 1198b673c648ce4c827a3ce28c392b6dd85a2e9a..12837fd3e7de2e3496ab4097dfb7c2c971117636 100644 (file)
@@ -1570,7 +1570,7 @@ seedRandom(::arg()["entropy-source"]);
     dbBench(cmds.size() > 1 ? cmds[1] : "");
   }
   else if (cmds[0] == "check-all-zones") {
-    bool exitOnError = ((cmds.size() > 2 ? cmds[1] : "") == "exit-on-error");
+    bool exitOnError = ((cmds.size() >= 2 ? cmds[1] : "") == "exit-on-error");
     exit(checkAllZones(dk, exitOnError));
   }
   else if (cmds[0] == "list-all-zones") {