lua: set thread vars in DetectLuaMatch

Fix internal error when calling SCThreadInfo from Lua detection modules.

Signed-off-by: Nicolas Thill <ntl@p1sec.com>
pull/1845/head
Nicolas Thill 10 years ago committed by Victor Julien
parent c4fb6217ee
commit 3c9538b783

@ -418,6 +418,7 @@ static int DetectLuaMatch (ThreadVars *tv, DetectEngineThreadCtx *det_ctx,
else if (p->flowflags & FLOW_PKT_TOCLIENT)
flags = STREAM_TOCLIENT;
LuaStateSetThreadVars(tluajit->luastate, tv);
LuaExtensionsMatchSetup(tluajit->luastate, luajit, det_ctx,
p->flow, /* flow not locked */LUA_FLOW_NOT_LOCKED_BY_PARENT, p, flags);

Loading…
Cancel
Save