From b3416f9848cb623ba1fd2b998ce438dc930850cd Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 14 Jul 2010 16:24:15 +0100 Subject: certmanager: Fix to handle the case of no SSL configuration at all --- core/certmanager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/certmanager.lua') diff --git a/core/certmanager.lua b/core/certmanager.lua index 9b33bf72..6f0a1f59 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -23,9 +23,9 @@ local default_ssl_config = configmanager.get("*", "core", "ssl") or {}; local default_capath = "/etc/ssl/certs"; function create_context(host, mode, config) - if not ssl then return nil; end - local user_ssl_config = config and config.core.ssl or default_ssl_config; + + if not(ssl and user_ssl_config) then return nil; end local ssl_config = { mode = mode; -- cgit v1.2.3