From: Eric Leblond Date: Thu, 20 Jun 2019 11:02:51 +0000 (+0200) Subject: flow-hash: generalize function X-Git-Tag: suricata-5.0.0-rc1~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=094d28d40e98680a8003cc67620e578a3f1ec27e;p=thirdparty%2Fsuricata.git flow-hash: generalize function THis patch generalizes the function to get a flow by its flowkey by removing the call setting it to capture bypassed state. --- diff --git a/src/flow-hash.c b/src/flow-hash.c index 19d828e837..e7788b2f1b 100644 --- a/src/flow-hash.c +++ b/src/flow-hash.c @@ -780,7 +780,6 @@ Flow *FlowGetFromFlowKey(FlowKey *key, struct timespec *ttime, const uint32_t ha } else if (key->src.family == AF_INET6) { f->flags |= FLOW_IPV6; } - FlowUpdateState(f, FLOW_STATE_CAPTURE_BYPASSED); f->protomap = FlowGetProtoMapping(f->proto); /* set timestamp to now */