]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Hopefully appease the formatting gods 10734/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Dec 2021 15:55:06 +0000 (16:55 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Dec 2021 15:55:06 +0000 (16:55 +0100)
pdns/dnsdist-lua.cc

index 0200a82e26a3bd21aa324f213f8b1c1202b455e6..4424b34135e5e4092c2b6cf00f4d3c2966eff25f 100644 (file)
@@ -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<std::string> defaultString) {
-      if (client) {
-        return;
-      }
+  luaCtx.writeFunction("loadTLSEngine", [client](const std::string& engineName, boost::optional<std::string> defaultString) {
+    if (client) {
+      return;
+    }
 
-      auto [success, error] = libssl_load_engine(engineName, defaultString ? std::optional<std::string>(*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<std::string>(*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 */
 }