# HG changeset patch # User Kim Alvefur # Date 1357521427 -3600 # Node ID 676a1a032d2f3778162f59a6d9a086be43cc641e # Parent 0cbe57fbe2cd7aa99de84e0dcc7bbc20d2701d66 certmanager: Fix nil index if no LuaSec available diff -r 0cbe57fbe2cd -r 676a1a032d2f core/certmanager.lua --- a/core/certmanager.lua Sun Jan 06 04:55:53 2013 +0500 +++ b/core/certmanager.lua Mon Jan 07 02:17:07 2013 +0100 @@ -33,7 +33,7 @@ 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);