Changeset

3367:598c33a99a31

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).
author Waqas Hussain <waqas20@gmail.com>
date Thu, 15 Jul 2010 11:25:41 +0500
parents 3366:a2a242321901
children 3368:1748a49da906 3371:5b32e6f84392
files core/certmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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