From 42d3cd2061f7043ceaa3f146dd800c4de36eace8 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 9 Jan 2023 12:49:04 +0100 Subject: [PATCH] stream/list: hack around GAP handling in tests --- src/tests/stream-tcp-list.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/stream-tcp-list.c b/src/tests/stream-tcp-list.c index 428b391408..d10c756bd9 100644 --- a/src/tests/stream-tcp-list.c +++ b/src/tests/stream-tcp-list.c @@ -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"); -- 2.47.2