From: vanlink Date: Thu, 16 Jan 2020 08:27:57 +0000 (+0800) Subject: stream/reassembly: fix data overlap check X-Git-Tag: suricata-6.0.0-beta1~752 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4547%2Fhead;p=thirdparty%2Fsuricata.git stream/reassembly: fix data overlap check Fix function CheckOverlap bug. --- diff --git a/src/stream-tcp-list.c b/src/stream-tcp-list.c index 31401d0236..cb47ee8e92 100644 --- a/src/stream-tcp-list.c +++ b/src/stream-tcp-list.c @@ -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; }