]> git.ipfire.org Git - thirdparty/suricata.git/commit
stream-tcp-reassemble: fix reassembly direction for FIN packets
authorAngelo Mirabella <amirabella@lastline.com>
Thu, 20 Jan 2022 14:52:33 +0000 (14:52 +0000)
committerVictor Julien <vjulien@oisf.net>
Fri, 28 Jan 2022 06:50:21 +0000 (07:50 +0100)
commit7cd0d00fdc1e9c1a6b4049379f23b5fa3b368a04
treeff3ede2107a020b06707f39c99c2c6b7b6e23003
parent29aa7144b46b904d719c39af8299008aa8e62039
stream-tcp-reassemble: fix reassembly direction for FIN packets

Suricata invokes the stream reassembly logic only for the current packet
direction if the packet contains a FIN flag. However, this does not
handle the case in which the packet ACKs data from the opposing direction.
This patch forces the invocation of the stream reassembly logic
on both direction when Suricata sees a FIN packet.

(cherry picked from commit 41a139b590a059171d0517a455c562486e1a21c2)
src/stream-tcp-reassemble.c