# HG changeset patch # User Waqas Hussain # Date 1279175141 -18000 # Node ID 598c33a99a31d89d1b18d4c10e4574ef950ba345 # Parent a2a242321901a4707d83a70679cdd9bcb4404005 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). diff -r a2a242321901 -r 598c33a99a31 core/certmanager.lua --- a/core/certmanager.lua Wed Jul 14 20:21:51 2010 +0500 +++ b/core/certmanager.lua Thu Jul 15 11:25:41 2010 +0500 @@ -11,7 +11,7 @@ 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