From: Remi Gacogne Date: Fri, 14 Oct 2022 12:47:30 +0000 (+0200) Subject: dnsdist: Fix formatting X-Git-Tag: dnsdist-1.8.0-rc1~277^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11675%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix formatting --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index e5c09ae13c..96c46ceb45 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -2508,9 +2508,10 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) try { std::map ocspResponses = {}; auto ctx = libssl_init_server_context(frontend->d_tlsConfig, ocspResponses); - } catch (const std::runtime_error& e) { + } + catch (const std::runtime_error& e) { errlog("Ignoring DoH frontend: '%s'", e.what()); - return ; + return; } } } @@ -2723,9 +2724,10 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) try { std::map ocspResponses = {}; auto ctx = libssl_init_server_context(frontend->d_tlsConfig, ocspResponses); - } catch (const std::runtime_error& e) { + } + catch (const std::runtime_error& e) { errlog("Ignoring TLS frontend: '%s'", e.what()); - return ; + return; } } }