From: Remi Gacogne Date: Wed, 8 Nov 2017 11:23:12 +0000 (+0100) Subject: rec: Don't crash when asked to run with zero threads X-Git-Tag: auth-4.1.0-rc3~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5938%2Fhead;p=thirdparty%2Fpdns.git rec: Don't crash when asked to run with zero threads --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index e987037e06..324c514687 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2986,6 +2986,11 @@ static int serviceMain(int argc, char*argv[]) g_lowercaseOutgoing = ::arg().mustDo("lowercase-outgoing"); g_numWorkerThreads = ::arg().asNum("threads"); + if (g_numWorkerThreads < 1) { + L<