lua: reset instruction counter before calling script

pull/11170/head
Jason Ish 9 months ago
parent 1f05a17fb9
commit afb705d278

@ -197,6 +197,9 @@ void LuaDumpStack(lua_State *state)
static int DetectLuaRunMatch(
DetectEngineThreadCtx *det_ctx, const DetectLuaData *lua, DetectLuaThreadData *tlua)
{
/* Reset instruction count. */
SCLuaSbResetInstructionCounter(tlua->luastate);
if (lua_pcall(tlua->luastate, 1, 1, 0) != 0) {
if (!(tlua->flags & FLAG_ERROR_LOGGED)) {
/* Log once per thread, the message from Lua will include

Loading…
Cancel
Save