From: Remi Gacogne Date: Fri, 3 Dec 2021 15:55:06 +0000 (+0100) Subject: dnsdist: Hopefully appease the formatting gods X-Git-Tag: auth-4.7.0-alpha1~120^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10734%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Hopefully appease the formatting gods --- 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 */ }