Software /
code /
prosody
Changeset
4991:bcbfcec620ac
certmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 23 Jul 2012 16:39:49 +0100 |
parents | 4990:75fe91372f92 |
children | 4992:e79e4d1f75de |
files | core/certmanager.lua |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/certmanager.lua Mon Jul 23 14:17:42 2012 +0100 +++ b/core/certmanager.lua Mon Jul 23 16:39:49 2012 +0100 @@ -17,8 +17,11 @@ 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"