From 7f2f825ddf652fe2cf89a3da0e98d8ebc0274435 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 27 Mar 2018 14:25:30 +0200 Subject: [PATCH] dnsdist: Don't capture the client var when we don't need it --- pdns/dnsdist-lua.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.47.2