From 7d3ee2bbadcc6644f6b9cc88026b6da76b7f214d Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 27 Feb 2018 15:09:40 +0100 Subject: [PATCH] dnsdist: Exit with code 1 on invalid parameter Closes #6305 for master --- pdns/dnsdist.cc | 70 ++++++++++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 30 deletions(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index b324fb13d..4def0000e 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1981,6 +1981,40 @@ struct std::atomic g_configurationDone{false}; +static void usage() +{ + cout<