From: Remi Gacogne Date: Tue, 27 Mar 2018 12:25:30 +0000 (+0200) Subject: dnsdist: Don't capture the client var when we don't need it X-Git-Tag: dnsdist-1.3.0~7^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2f825ddf652fe2cf89a3da0e98d8ebc0274435;p=thirdparty%2Fpdns.git dnsdist: Don't capture the client var when we don't need it --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 1c9f18c604..3abcd4f794 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1443,7 +1443,7 @@ void setupLuaConfig(bool client) #endif }); - g_lua.writeFunction("showTLSContexts", [client]() { + g_lua.writeFunction("showTLSContexts", []() { #ifdef HAVE_DNS_OVER_TLS setLuaNoSideEffect(); try { @@ -1467,7 +1467,7 @@ void setupLuaConfig(bool client) #endif }); - g_lua.writeFunction("getTLSContext", [client](size_t index) { + g_lua.writeFunction("getTLSContext", [](size_t index) { std::shared_ptr result = nullptr; #ifdef HAVE_DNS_OVER_TLS setLuaNoSideEffect();