]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: fix IDS mode using un-ACK'd data
authorVictor Julien <victor@inliniac.net>
Mon, 8 Jun 2020 13:24:00 +0000 (15:24 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 27 Jul 2020 15:07:21 +0000 (17:07 +0200)
src/stream-tcp-reassemble.c

index 549c8c88a785d1da8172b98ecae22836c58747d5..759be814b6af7041bc7ac7246725b41438804ebf 100644 (file)
@@ -1008,7 +1008,7 @@ static inline uint32_t AdjustToAcked(const Packet *p, const TcpStream *stream,
         if (p->flags & PKT_PSEUDO_STREAM_END) {
             // fall through, we use all available data
         } else {
-            uint64_t last_ack_abs = app_progress; /* absolute right edge of ack'd data */
+            uint64_t last_ack_abs = STREAM_BASE_OFFSET(stream);
             if (STREAM_LASTACK_GT_BASESEQ(stream)) {
                 /* get window of data that is acked */
                 uint32_t delta = stream->last_ack - stream->base_seq;