From 2d36eefe8626aa54e9eff580dca5d96c73fd875e Mon Sep 17 00:00:00 2001 From: Juliana Fajardini Date: Tue, 7 Sep 2021 10:37:19 +0100 Subject: [PATCH] util/lua-common: use pushinteger w/ byte & pkt cnt LuaCallbackStatsPushToStackFromFlow tuple is composed of integer values not all of them had been converted to lua_pushinteger yet. (cherry picked from commit 8b53468d32e5b14817a41c6b0656cd3569a87749) --- src/util-lua-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-lua-common.c b/src/util-lua-common.c index 649da2d4ed..d74582e03e 100644 --- a/src/util-lua-common.c +++ b/src/util-lua-common.c @@ -494,9 +494,9 @@ static int LuaCallbackAppLayerProtoFlow(lua_State *luastate) static int LuaCallbackStatsPushToStackFromFlow(lua_State *luastate, const Flow *f) { lua_pushinteger(luastate, f->todstpktcnt); - lua_pushnumber(luastate, f->todstbytecnt); + lua_pushinteger(luastate, f->todstbytecnt); lua_pushinteger(luastate, f->tosrcpktcnt); - lua_pushnumber(luastate, f->tosrcbytecnt); + lua_pushinteger(luastate, f->tosrcbytecnt); return 4; } -- 2.47.2