* 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
This commit is contained in:
Axel Dörfler
2009-01-19 17:40:20 +00:00
parent 236ecca7da
commit 93f76bfb7e
@@ -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) {