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).
authorWaqas Hussain <waqas20@gmail.com>
Thu, 15 Jul 2010 11:25:41 +0500
changeset 3367 598c33a99a31
parent 3366 a2a242321901
child 3368 1748a49da906
child 3371 5b32e6f84392
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
--- 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