aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar Pascal Fellerich <[email protected]> 2017-03-21 09:55:59 +0100
committerLibravatarLibravatar daurnimator <[email protected]> 2017-04-03 15:52:28 +1000
commit3c49837d05b6fad0f1212a27e81e8ffc868eedfb (patch)
tree2bddbdfe6c8f0b2e70d29c009a0c4d63b498f0ff /src
parentd77caf28ae5af5cd4b759d436c4c94870d8d26a3 (diff)
downloadluaossl-3c49837d05b6fad0f1212a27e81e8ffc868eedfb.tar.gz
luaossl-3c49837d05b6fad0f1212a27e81e8ffc868eedfb.tar.bz2
luaossl-3c49837d05b6fad0f1212a27e81e8ffc868eedfb.zip
Bugfix in xx_getNextUpdate() - return time instead of constant 1.
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 0910bb3..0ba7825 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -6648,7 +6648,7 @@ static int xx_getNextUpdate(lua_State *L) {
updateby = timeutc(time);
if (isfinite(updateby))
- lua_pushnumber(L, 1);
+ lua_pushnumber(L, updateby);
else
lua_pushnil(L);