stream/reassembly: fix data overlap check

Fix function CheckOverlap bug.

(cherry picked from commit 2456f27d08)
pull/4549/head
vanlink 6 years ago committed by Victor Julien
parent 8f40658061
commit 3224a593a0

@ -141,7 +141,7 @@ static inline bool CheckOverlap(struct TCPSEG *tree, TcpSegment *seg)
return true;
// prev's right edge is beyond our seq, overlap
const uint32_t prev_re = SEG_SEQ_RIGHT_EDGE(prev);
if (SEQ_GT(prev_re, prev->seq))
if (SEQ_GT(prev_re, seg->seq))
return true;
}

Loading…
Cancel
Save