From: Christian Hofstaedtler Date: Mon, 4 Jan 2016 10:42:40 +0000 (+0100) Subject: Fix my check-all-zones fix X-Git-Tag: dnsdist-1.0.0-alpha2~93^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3162%2Fhead;p=thirdparty%2Fpdns.git Fix my check-all-zones fix Which entirely disabled exit-on-error. --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 1198b673c6..12837fd3e7 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -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") {