From: Victor Julien Date: Mon, 9 Jan 2023 11:49:04 +0000 (+0100) Subject: stream/list: hack around GAP handling in tests X-Git-Tag: suricata-7.0.0-rc1~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d3cd2061f7043ceaa3f146dd800c4de36eace8;p=thirdparty%2Fsuricata.git stream/list: hack around GAP handling in tests --- 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");