# HG changeset patch # User Matthew Wild # Date 1343049462 -3600 # Node ID 75fe91372f929f2d40df1edd808f856e8a1af899 # Parent 573123ff2ab0b7d53ff1da7061b249d217828f68 certmanager: Fix traceback for missing LuaSec (thanks Link Mauve) diff -r 573123ff2ab0 -r 75fe91372f92 core/certmanager.lua --- a/core/certmanager.lua Mon Jul 23 14:03:00 2012 +0100 +++ b/core/certmanager.lua Mon Jul 23 14:17:42 2012 +0100 @@ -17,8 +17,8 @@ local resolve_path = configmanager.resolve_relative_path; local config_path = prosody.paths.config; -local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); -local luasec_has_noticket = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4; +local luasec_major, luasec_minor = ssl and ssl._VERSION:match("^(%d+)%.(%d+)"); +local luasec_has_noticket = ssl and (tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4); module "certmanager"