]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow-hash: generalize function
authorEric Leblond <eric@regit.org>
Thu, 20 Jun 2019 11:02:51 +0000 (13:02 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 23 Aug 2019 11:42:08 +0000 (13:42 +0200)
THis patch generalizes the function to get a flow by its flowkey
by removing the call setting it to capture bypassed state.

src/flow-hash.c

index 19d828e8375d8f121a919d8b34d6a31106f32938..e7788b2f1be3c5545b1e0446810d3de5804086dc 100644 (file)
@@ -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 */