stream: clarify error handling comment

pull/7496/head
Victor Julien 3 years ago
parent b6cf79901a
commit 2d64ec6585

@ -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);
}

Loading…
Cancel
Save