]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream/list: hack around GAP handling in tests
authorVictor Julien <vjulien@oisf.net>
Mon, 9 Jan 2023 11:49:04 +0000 (12:49 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 18 Jan 2023 14:28:19 +0000 (15:28 +0100)
src/tests/stream-tcp-list.c

index 428b391408b8a8e5b3b5f255e28b888f2451a7e9..d10c756bd9c6f78b4eb9a154e66d0bcbbb722793 100644 (file)
@@ -28,9 +28,8 @@
 
 static int VALIDATE(TcpStream *stream, uint8_t *data, uint32_t data_len)
 {
-    if (StreamingBufferCompareRawData(&stream->sb,
-                data, data_len) == 0)
-    {
+    // HACK: these tests should be updated to check the SBB blocks
+    if (memcmp(stream->sb.region.buf, data, data_len) != 0) {
         SCReturnInt(0);
     }
     SCLogInfo("OK");