detect/tests: improve detection entry

Lots of tests still use SigMatchSignatures as their main detection
entry function, which bypassed some logic. Make it match main logic
more closely.
pull/6383/head
Victor Julien 4 years ago
parent 3f4110af32
commit e36b9b89a1

@ -1639,11 +1639,14 @@ void DisableDetectFlowFileFlags(Flow *f)
/**
* \brief wrapper for old tests
*/
void SigMatchSignatures(ThreadVars *th_v,
DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
Packet *p)
void SigMatchSignatures(
ThreadVars *tv, DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, Packet *p)
{
DetectRun(th_v, de_ctx, det_ctx, p);
if (p->flow) {
DetectFlow(tv, de_ctx, det_ctx, p);
} else {
DetectNoFlow(tv, de_ctx, det_ctx, p);
}
}
#endif

Loading…
Cancel
Save