Changeset

5287:676a1a032d2f

certmanager: Fix nil index if no LuaSec available
author Kim Alvefur <zash@zash.se>
date Mon, 07 Jan 2013 02:17:07 +0100
parents 5286:0cbe57fbe2cd
children 5288:2777f34adbd3
files core/certmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);