From 2456f27d08142b571a06ffd211c90a5fa557366a Mon Sep 17 00:00:00 2001 From: vanlink Date: Thu, 16 Jan 2020 16:27:57 +0800 Subject: [PATCH] stream/reassembly: fix data overlap check Fix function CheckOverlap bug. --- src/stream-tcp-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2