diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-23 16:39:49 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-23 16:39:49 +0100 |
commit | 386cb061d0884d2afbe78ca8a49e41c10e4f5f00 (patch) | |
tree | 29d57807329473f6f8972b40ed8ff3ff7f0fcd11 /core/certmanager.lua | |
parent | 75c4e5263d188cac8d8f172c82a84bd15082b56e (diff) | |
download | prosody-386cb061d0884d2afbe78ca8a49e41c10e4f5f00.tar.gz prosody-386cb061d0884d2afbe78ca8a49e41c10e4f5f00.zip |
certmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON)
Diffstat (limited to 'core/certmanager.lua')
-rw-r--r-- | core/certmanager.lua | 7 |
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" |