]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream/reassembly: ignore min_inspect_depth on TCP state CLOSED
authorVictor Julien <vjulien@oisf.net>
Fri, 26 Nov 2021 12:06:00 +0000 (13:06 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 7 Dec 2021 12:30:22 +0000 (13:30 +0100)
src/stream-tcp-list.c

index 47fde89cb5286d354a68e0d7e22efe1580f2f173..5800251d1766ef3185ea135d5ca0b3b0921bdf44 100644 (file)
@@ -710,7 +710,7 @@ static inline uint64_t GetLeftEdge(TcpSession *ssn, TcpStream *stream)
 
         /* apply min inspect depth: if it is set we need to keep data
          * before the raw progress. */
-        if (use_app && stream->min_inspect_depth) {
+        if (use_app && stream->min_inspect_depth && ssn->state < TCP_CLOSED) {
             if (raw_progress < stream->min_inspect_depth)
                 raw_progress = 0;
             else