aboutsummaryrefslogtreecommitdiffstats
path: root/core/certmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-23 16:39:49 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-23 16:39:49 +0100
commitd1da857c337479cf0d9d9f0c62936faefa08d957 (patch)
tree29d57807329473f6f8972b40ed8ff3ff7f0fcd11 /core/certmanager.lua
parent9d5b5e9a9133e4aab2017824f0317db2e8053152 (diff)
downloadprosody-d1da857c337479cf0d9d9f0c62936faefa08d957.tar.gz
prosody-d1da857c337479cf0d9d9f0c62936faefa08d957.zip
certmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON)
Diffstat (limited to 'core/certmanager.lua')
-rw-r--r--core/certmanager.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index e5006694..8a22f3df 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -17,8 +17,11 @@ local prosody = prosody;
local resolve_path = configmanager.resolve_relative_path;
local config_path = prosody.paths.config;
-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);
+local luasec_has_noticket;
+if ssl then
+ local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)");
+ luasec_has_noticket = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4;
+end
module "certmanager"