From f6eb8c48d0a294112f7541eb12882c1af279d739 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Mon, 4 Jan 2016 11:42:40 +0100 Subject: [PATCH] Fix my check-all-zones fix Which entirely disabled exit-on-error. --- pdns/pdnsutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") { -- 2.47.2