Make sure that continued stateful detection only inspects sigs in the proper direction.

remotes/origin/master-1.2.x
Victor Julien 13 years ago
parent 21ee59e6f3
commit 026a4efc57

@ -755,6 +755,12 @@ int DeStateDetectContinueDetection(ThreadVars *tv, DetectEngineCtx *de_ctx, Dete
}
}
/* only inspect in the right direction here */
if (flags & STREAM_TOSERVER && !(s->flags & SIG_FLAG_TOSERVER))
continue;
else if (flags & STREAM_TOCLIENT && !(s->flags & SIG_FLAG_TOCLIENT))
continue;
RULE_PROFILING_START;
/* let's continue detection */

Loading…
Cancel
Save