]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: fix bypass callback for stream.depth
authorPhil Young <py@napatech.com>
Mon, 5 Aug 2019 19:37:10 +0000 (15:37 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 9 Sep 2019 17:14:22 +0000 (19:14 +0200)
Fix bug with bypass callback when called with stream depth threshold.
bug report: https://redmine.openinfosecfoundation.org/issues/2986

src/stream-tcp.c

index c8b4e7df4c92503bb96b0f319213189eb6d442d6..2f795bdc3939eb2c2167bfb38a4fc6d7e62f197a 100644 (file)
@@ -4873,7 +4873,7 @@ int StreamTcpPacket (ThreadVars *tv, Packet *p, StreamTcpThread *stt,
         /* check for conditions that may make us not want to log this packet */
 
         /* streams that hit depth */
-        if ((ssn->client.flags & STREAMTCP_STREAM_FLAG_DEPTH_REACHED) &&
+        if ((ssn->client.flags & STREAMTCP_STREAM_FLAG_DEPTH_REACHED) ||
              (ssn->server.flags & STREAMTCP_STREAM_FLAG_DEPTH_REACHED))
         {
             /* we can call bypass callback, if enabled */