]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4885: stream_tcp: do not generate established event on RST if 3whs...
authorJuweria Ali Imran (jaliimra) <jaliimra@cisco.com>
Tue, 9 Sep 2025 15:12:50 +0000 (15:12 +0000)
committerSteven Baigal (sbaigal) <sbaigal@cisco.com>
Tue, 9 Sep 2025 15:12:50 +0000 (15:12 +0000)
Merge in SNORT/snort3 from ~JALIIMRA/snort3:conn_event_est to master

Squashed commit of the following:

commit 60c8aacab33e8ce080bfb2b509a928f0a7ab4dc3
Author: Juweria Ali Imran <jaliimra@cisco.com>
Date:   Wed Aug 27 09:05:32 2025 -0400

    stream_tcp: do not generate established event on RST if 3whs is not complete

src/stream/tcp/tcp_state_syn_recv.cc

index 07ec00f85e81cd30dcfb9c34a184800a73adb5be..bd1e1e48f0edc23b09efa3bd13f2b1aadae74714 100644 (file)
@@ -177,8 +177,6 @@ bool TcpStateSynRecv::rst_recv(TcpSegmentDescriptor& tsd, TcpStreamTracker& trk)
     {
         Flow* flow = tsd.get_flow();
         flow->set_session_flags(SSNFLAG_RESET);
-        if ( !((SSNFLAG_TCP_PSEUDO_EST | SSNFLAG_ESTABLISHED) & flow->get_session_flags()) )
-            trk.session->set_pseudo_established(tsd.get_pkt());
     }
     else
     {