# HG changeset patch # User Matthew Wild # Date 1279121055 -3600 # Node ID 7c87af1c9a6895e3af7dd1cad67d6e899fbe58a8 # Parent 9a96969d4670479693251ac06bc14f3a2ae9969e certmanager: Fix to handle the case of no SSL configuration at all diff -r 9a96969d4670 -r 7c87af1c9a68 core/certmanager.lua --- a/core/certmanager.lua Thu Jul 15 11:28:31 2010 +0500 +++ b/core/certmanager.lua Wed Jul 14 16:24:15 2010 +0100 @@ -23,9 +23,9 @@ 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;