detect: fix flow bypass flag handling

pull/3017/head
Victor Julien 8 years ago
parent ddd3c0b1df
commit e1d1a7f2ac

@ -1478,15 +1478,16 @@ static void DetectFlow(ThreadVars *tv,
/* hack: if we are in pass the entire flow mode, we need to still
* update the inspect_id forward. So test for the condition here,
* and call the update code if necessary. */
int pass = ((p->flow->flags & FLOW_NOPACKET_INSPECTION));
uint8_t flags = FlowGetDisruptionFlags(p->flow, 0);
AppProto alproto = FlowGetAppProtocol(p->flow);
const int pass = ((p->flow->flags & FLOW_NOPACKET_INSPECTION));
const AppProto alproto = FlowGetAppProtocol(p->flow);
if (pass && AppLayerParserProtocolSupportsTxs(p->proto, alproto)) {
uint8_t flags;
if (p->flowflags & FLOW_PKT_TOSERVER) {
flags |= STREAM_TOSERVER;
flags = STREAM_TOSERVER;
} else {
flags |= STREAM_TOCLIENT;
flags = STREAM_TOCLIENT;
}
flags = FlowGetDisruptionFlags(p->flow, flags);
DeStateUpdateInspectTransactionId(p->flow, flags);
}
return;

Loading…
Cancel
Save