Changeset

7320:3849b5187d47

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Sat, 26 Mar 2016 20:17:59 +0000
parents 7318:1fa6052f3a07 (current diff) 7319:afa83f3ccaad (diff)
children 7324:7e6409462f79
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Sat Mar 26 14:54:39 2016 +0100
+++ b/core/certmanager.lua	Sat Mar 26 20:17:59 2016 +0000
@@ -36,7 +36,7 @@
 local config_path = prosody.paths.config;
 
 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)");
-local luasec_version = luasec_major * 100 + luasec_minor;
+local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor);
 local luasec_has = {
 	-- TODO If LuaSec ever starts exposing these things itself, use that instead
 	cipher_server_preference = luasec_version >= 2;