From: Aki Tuomi Date: Mon, 8 Mar 2021 17:53:43 +0000 (+0200) Subject: dnsdist-lua: Really ignore negative numberOfStoredSessions X-Git-Tag: dnsdist-1.8.0-rc1~43^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8921ddc08a18481d9da7a2676cc80f704e4a474;p=thirdparty%2Fpdns.git dnsdist-lua: Really ignore negative numberOfStoredSessions Broken in b54e94dc8cfe11a36602fc0f4465c1bbb076f7f0 --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index ba20ce302a..829e02b0bd 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -196,8 +196,9 @@ static void parseTLSConfig(TLSConfig& config, const std::string& context, boost: if (numberOfStoredSessions < 0) { errlog("Invalid value '%d' for %s() parameter 'numberOfStoredSessions', should be >= 0, dismissing", numberOfStoredSessions, context); g_outputBuffer = "Invalid value '" + std::to_string(numberOfStoredSessions) + "' for " + context + "() parameter 'numberOfStoredSessions', should be >= 0, dimissing"; + } else { + config.d_maxStoredSessions = numberOfStoredSessions; } - config.d_maxStoredSessions = numberOfStoredSessions; } LuaArray files;