From: Juliana Fajardini Date: Thu, 16 Sep 2021 13:48:09 +0000 (+0100) Subject: util/lua-common: use lua_pushnumber for SCFileInfo X-Git-Tag: suricata-5.0.8~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b5b54ce46aa577720263aa787df29ebf77c1023;p=thirdparty%2Fsuricata.git util/lua-common: use lua_pushnumber for SCFileInfo (cherry picked from commit b3f447a0df0d389184febc06dc7445ddcae940e2) --- diff --git a/src/util-lua-common.c b/src/util-lua-common.c index 22da8d3fd9..48b2fb03c0 100644 --- a/src/util-lua-common.c +++ b/src/util-lua-common.c @@ -753,10 +753,10 @@ static int LuaCallbackFileInfoPushToStackFromFile(lua_State *luastate, const Fil char *sha256ptr = NULL; #endif - lua_pushnumber(luastate, file->file_store_id); - lua_pushnumber(luastate, file->txid); + lua_pushinteger(luastate, file->file_store_id); + lua_pushinteger(luastate, file->txid); lua_pushlstring(luastate, (char *)file->name, file->name_len); - lua_pushnumber(luastate, FileTrackedSize(file)); + lua_pushinteger(luastate, FileTrackedSize(file)); lua_pushstring (luastate, #ifdef HAVE_MAGIC file->magic