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.
pull/6383/head
Juliana Fajardini 4 years ago committed by Victor Julien
parent 82cd125c62
commit 8b53468d32

@ -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;
}

Loading…
Cancel
Save