]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3259: detection: add direction abort check in skip_raw_tcp
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Mon, 7 Feb 2022 13:42:44 +0000 (13:42 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Mon, 7 Feb 2022 13:42:44 +0000 (13:42 +0000)
Merge in SNORT/snort3 from ~ASERBENI/snort3:aborted_dir_raw_inspect to master

Squashed commit of the following:

commit d2541d8336523a682eb86f8c4c7b39e4bd8bf7c5
Author: Andrii Serbeniuk <aserbeni@cisco.com>
Date:   Thu Feb 3 10:14:44 2022 +0200

    detection: add dir abort check in skip_raw_tcp

src/detection/fp_detect.cc

index 6c8e02a1684035c403e520631276ddf9d17116bc..c53f84bc8b801678b3d89ed6436d4726c0db6649 100644 (file)
@@ -1246,7 +1246,7 @@ static inline bool skip_raw_tcp(const Packet* p)
     if ( !(p->packet_flags & PKT_STREAM_INSERT) )
         return false;
 
-    if ( !p->flow or !p->flow->gadget )
+    if ( !p->flow or !p->flow->gadget or p->flow->is_direction_aborted(p->is_from_client()) )
         return false;
 
     if ( !p->context->conf->fast_pattern_config->get_stream_insert() )