aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index c0d93dd..e1c3b8d 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -27,6 +27,7 @@
#define LUAOSSL_H
#include <limits.h> /* INT_MAX INT_MIN */
+#include <stdint.h> /* uintptr_t */
#include <string.h> /* memset(3) strerror_r(3) */
#include <strings.h> /* strcasecmp(3) */
#include <math.h> /* INFINITY fabs(3) floor(3) frexp(3) fmod(3) round(3) isfinite(3) */
@@ -3003,7 +3004,7 @@ static int xx_getLastUpdate(lua_State *L) {
updated = timeutc(time);
if (isfinite(updated))
- lua_pushnumber(L, 1);
+ lua_pushnumber(L, updated);
else
lua_pushnil(L);