aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_text.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-04-07 16:38:50 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-04-07 16:39:22 +0100
commita070e5a10a3084bf75472177bedfacc612c25071 (patch)
tree347823c471e0fd3ae2c88c9d0b5ded83a3cd3212 /src/lua/lua_text.c
parent58bd6be3f7f9302e51ae4031658311f9cc9842d8 (diff)
downloadrspamd-a070e5a10a3084bf75472177bedfacc612c25071.tar.gz
rspamd-a070e5a10a3084bf75472177bedfacc612c25071.zip
[Feature] Finish all features of dkim_keygen in Lua
Diffstat (limited to 'src/lua/lua_text.c')
-rw-r--r--src/lua/lua_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_text.c b/src/lua/lua_text.c
index b6f0948c3..bafab3c08 100644
--- a/src/lua/lua_text.c
+++ b/src/lua/lua_text.c
@@ -1118,12 +1118,12 @@ lua_text_save_in_file (lua_State *L)
fname = luaL_checkstring (L, 2);
if (lua_type (L, 3) == LUA_TNUMBER) {
- mode = lua_tonumber (L, 3);
+ mode = lua_tointeger(L, 3);
}
}
else if (lua_type (L, 2) == LUA_TNUMBER) {
/* Created fd */
- fd = lua_tonumber (L, 2);
+ fd = lua_tointeger (L, 2);
}
if (fd == -1) {