]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: remove debug assert
authorVictor Julien <victor@inliniac.net>
Thu, 21 Jan 2021 15:44:39 +0000 (16:44 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 22 Jan 2021 06:49:06 +0000 (07:49 +0100)
In cases of large windows in the past the check would tigger.

src/stream-tcp-reassemble.c

index 6b3ace4f176ea044e4aefd4a6af2bdaf3c2d2a38..29b8abe3fee8032d7f9c1d4cb62b5e723ef2a991 100644 (file)
@@ -1053,7 +1053,6 @@ static inline uint32_t AdjustToAcked(const Packet *p,
             if (STREAM_LASTACK_GT_BASESEQ(stream)) {
                 /* get window of data that is acked */
                 uint32_t delta = stream->last_ack - stream->base_seq;
-                DEBUG_VALIDATE_BUG_ON(delta > 10000000ULL && delta > stream->window);
                 /* get max absolute offset */
                 last_ack_abs += delta;
             }