]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: clarify error handling comment
authorVictor Julien <vjulien@oisf.net>
Wed, 1 Jun 2022 12:49:27 +0000 (14:49 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 7 Jun 2022 08:37:53 +0000 (10:37 +0200)
src/stream-tcp-list.c

index 87b5efe7133a56cc0c7573caecc7f387e61e88c3..5ead97834e52e14a579166e5afe810198fe5a28d 100644 (file)
@@ -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);
     }