]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: memcap tracking for TcpSegment alloc
authorScott Jordan <scottfgjordan@gmail.com>
Mon, 1 Nov 2021 21:43:43 +0000 (16:43 -0500)
committerVictor Julien <vjulien@oisf.net>
Thu, 26 May 2022 11:33:33 +0000 (13:33 +0200)
src/stream-tcp-reassemble.c

index bf634f5bb68e0720734193bf0d85e2d8ea85f6b5..a01d8f72cbc8b3f77505229d0c9e8fd614df0083 100644 (file)
@@ -291,6 +291,8 @@ static void *TcpSegmentPoolAlloc(void)
                 return NULL;
             }
         }
+
+        StreamTcpReassembleIncrMemuse(memuse);
     } else {
         seg->pcap_hdr_storage = NULL;
     }