aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-23 14:17:42 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-23 14:17:42 +0100
commit9d5b5e9a9133e4aab2017824f0317db2e8053152 (patch)
treee4b57e1ffa1eb8016dc8aa00bf68e7f73369e751 /core
parenteffb9a4c488682020870a17398f6e5e2ed5345ad (diff)
downloadprosody-9d5b5e9a9133e4aab2017824f0317db2e8053152.tar.gz
prosody-9d5b5e9a9133e4aab2017824f0317db2e8053152.zip
certmanager: Fix traceback for missing LuaSec (thanks Link Mauve)
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 38092654..e5006694 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -17,8 +17,8 @@ local prosody = prosody;
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"