]> git.ipfire.org Git - thirdparty/suricata.git/commit
stream: improve last_ack validation check
authorVictor Julien <vjulien@oisf.net>
Fri, 22 Apr 2022 16:27:15 +0000 (18:27 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 27 Apr 2022 09:07:20 +0000 (11:07 +0200)
commit51c1a54dfb6426c365cc0b4cc0788d038f97609e
tree7fdd23d59983f7f573bccb18a3eb2ecb5df82290
parent8a163730aed637426a0c5215a881a4b829495fb2
stream: improve last_ack validation check

If a packet after the initialization would come with ACK flag set
but a ACK value of 0, the last_ack tracking could get confused. Fix
this by not checking for 0 but instead checking if the ACK flag
has been seen.

Bug: #4549.
(cherry picked from commit 1f43e1477f3c5781381e75f4bed918cbc6c18dfd)
src/stream-tcp-reassemble.h