aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-01-07 02:17:07 +0100
committerKim Alvefur <zash@zash.se>2013-01-07 02:17:07 +0100
commitce6f0ac6850e5833742c2fd8872d0d5e19dc695e (patch)
tree2168b8ba77b8bf1bb90938fb5db5a4d9d62dbf9e /core
parenta4bef98559a32112e76928b27429dc9e6c19dfd2 (diff)
downloadprosody-ce6f0ac6850e5833742c2fd8872d0d5e19dc695e.tar.gz
prosody-ce6f0ac6850e5833742c2fd8872d0d5e19dc695e.zip
certmanager: Fix nil index if no LuaSec available
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index a9f8b644..8607e618 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -33,7 +33,7 @@ local default_verify = (ssl and ssl.x509 and { "peer", "client_once", }) or "non
local default_options = { "no_sslv2", luasec_has_noticket and "no_ticket" or nil };
local default_verifyext = { "lsec_continue", "lsec_ignore_purpose" };
-if not luasec_has_verifyext and ssl.x509 then
+if ssl and not luasec_has_verifyext and ssl.x509 then
-- COMPAT mw/luasec-hg
for i=1,#default_verifyext do -- Remove lsec_ prefix
default_verify[#default_verify+1] = default_verifyext[i]:sub(6);