diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-07-15 11:25:41 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-07-15 11:25:41 +0500 |
commit | cf0bd27f7cd47a3c4bd79d31f0952f36f8a7f37f (patch) | |
tree | d9e2a7ffbedc8ea6a0ba3c58e5cd343894c6416b | |
parent | 74f1fca10ea47b63e2a66ff0aeee83cb4b49ee1e (diff) | |
download | prosody-cf0bd27f7cd47a3c4bd79d31f0952f36f8a7f37f.tar.gz prosody-cf0bd27f7cd47a3c4bd79d31f0952f36f8a7f37f.zip |
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).
-rw-r--r-- | core/certmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |