From cf0bd27f7cd47a3c4bd79d31f0952f36f8a7f37f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 15 Jul 2010 11:25:41 +0500 Subject: certmanager: Use an empty table as the default ssl config when a global 'ssl' config option isn't specified (fixes a top-level traceback on startup). --- core/certmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/certmanager.lua') diff --git a/core/certmanager.lua b/core/certmanager.lua index 5de604f7..6b31b21e 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -11,7 +11,7 @@ local resolve_path = prosody.resolve_relative_path; module "certmanager" -- Global SSL options if not overridden per-host -local default_ssl_config = configmanager.get("*", "core", "ssl"); +local default_ssl_config = configmanager.get("*", "core", "ssl") or {}; function create_context(host, mode, config) if not ssl then return nil; end -- cgit v1.2.3