]> 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>
Fri, 22 Apr 2022 16:27:22 +0000 (18:27 +0200)
commit1f43e1477f3c5781381e75f4bed918cbc6c18dfd
treed93db3bb2e45b6a4279570f39b3be6d22972469b
parentd56b2455bc5f430a52b993aa5a26e977ee43d967
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.
src/stream-tcp-reassemble.h