From e56d434e18ad42ea91e9918b6c2b013c6e983450 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 7 Jan 2013 02:17:07 +0100 Subject: certmanager: Fix nil index if no LuaSec available --- core/certmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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); -- cgit v1.2.3