From 93f76bfb7e50a7c5ed85aff643c02158dc5ad393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 19 Jan 2009 17:40:20 +0000 Subject: [PATCH] * Turns out the assert was wrong; since the previous buffer can be adjacent to the next buffer, it can also cause the new buffer to start at the same sequence as the next buffer. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28958 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/protocols/tcp/BufferQueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/network/protocols/tcp/BufferQueue.cpp b/src/add-ons/kernel/network/protocols/tcp/BufferQueue.cpp index 7b0cecde46..1db7b6cea0 100644 --- a/src/add-ons/kernel/network/protocols/tcp/BufferQueue.cpp +++ b/src/add-ons/kernel/network/protocols/tcp/BufferQueue.cpp @@ -162,8 +162,8 @@ BufferQueue::Add(net_buffer *buffer, tcp_sequence sequence) } } - // "next" always starts after the buffer sequence - ASSERT(next == NULL || buffer == NULL || next->sequence > sequence); + // "next" always starts at or after the buffer sequence + ASSERT(next == NULL || buffer == NULL || next->sequence >= sequence); while (buffer != NULL && next != NULL && tcp_sequence(sequence + buffer->size) > next->sequence) {