detect/flow: don't require flow for direction options

Flow isn't directly used for direction checks, so don't require
a flow to be present.
pull/3739/head
Victor Julien 7 years ago
parent c1dcc26965
commit d5baac3f85

@ -392,6 +392,11 @@ int DetectFlowSetup (DetectEngineCtx *de_ctx, Signature *s, const char *flowstr)
}
if (fd->flags & DETECT_FLOW_FLAG_NOSTREAM) {
s->flags |= SIG_FLAG_REQUIRE_PACKET;
} else if (fd->flags == DETECT_FLOW_FLAG_TOSERVER ||
fd->flags == DETECT_FLOW_FLAG_TOCLIENT)
{
// no direct flow is needed for just direction
} else {
s->init_data->init_flags |= SIG_FLAG_INIT_FLOW;
}

Loading…
Cancel
Save