From cec2df51f0a581ec0a77c457072eeba502057646 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 3 Dec 2021 16:55:06 +0100 Subject: [PATCH] dnsdist: Hopefully appease the formatting gods --- pdns/dnsdist-lua.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 0200a82e26..4424b34135 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -2813,17 +2813,17 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) }); #if defined(HAVE_LIBSSL) - luaCtx.writeFunction("loadTLSEngine", [client](const std::string& engineName, boost::optional defaultString) { - if (client) { - return; - } + luaCtx.writeFunction("loadTLSEngine", [client](const std::string& engineName, boost::optional defaultString) { + if (client) { + return; + } - auto [success, error] = libssl_load_engine(engineName, defaultString ? std::optional(*defaultString) : std::nullopt); - if (!success) { - g_outputBuffer = "Error while trying to load TLS engine '" + engineName + "': " + error + "\n"; - errlog("Error while trying to load TLS engine '%s': %s", engineName, error); - } - }); + auto [success, error] = libssl_load_engine(engineName, defaultString ? std::optional(*defaultString) : std::nullopt); + if (!success) { + g_outputBuffer = "Error while trying to load TLS engine '" + engineName + "': " + error + "\n"; + errlog("Error while trying to load TLS engine '%s': %s", engineName, error); + } + }); #endif /* HAVE_LIBSSL */ } -- 2.47.2