From: Victor Julien Date: Wed, 1 Jun 2022 12:49:27 +0000 (+0200) Subject: stream: clarify error handling comment X-Git-Tag: suricata-7.0.0-beta1~488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d64ec65850599e456b5916fc14bae225e7d5a06;p=thirdparty%2Fsuricata.git stream: clarify error handling comment --- diff --git a/src/stream-tcp-list.c b/src/stream-tcp-list.c index 87b5efe713..5ead97834e 100644 --- a/src/stream-tcp-list.c +++ b/src/stream-tcp-list.c @@ -100,7 +100,7 @@ static inline int InsertSegmentDataCustom(TcpStream *stream, TcpSegment *seg, ui &stream->sb, &seg->sbseg, data + data_offset, data_len - data_offset, stream_offset); if (ret != 0) { /* StreamingBufferInsertAt can return -2 only if the offset is wrong, which should be - * correctly handled here. */ + * impossible in this path. */ DEBUG_VALIDATE_BUG_ON(ret != -1); SCReturnInt(-1); }