]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow/bypass: Properly set the ICMP emergency-bypassed value
authorLuke Coughlan <lcoughlan5@gmail.com>
Mon, 26 Apr 2021 12:05:15 +0000 (13:05 +0100)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 29 Apr 2021 10:02:19 +0000 (15:32 +0530)
Currently the ICMP emergency-bypassed value defined in suricata.conf is
overwriting the UDP value rather than correctly setting it for ICMP.
This commit corrects this bug so that the ICMP value can be set as
expected.

(cherry picked from commit 7fb56a9075a97cd9781d08efd0f949b0bfca2719)

src/flow.c

index 614540dd534a1796fc6f518e774c4ebb6625c3af..8e361251880e1f9a76c4509cc46d14a2d6617bce 100644 (file)
@@ -978,7 +978,7 @@ void FlowInitFlowProto(void)
                                             strlen(emergency_bypassed),
                                             emergency_bypassed) > 0) {
 
-                flow_timeouts_emerg[FLOW_PROTO_UDP].bypassed_timeout = configval;
+                flow_timeouts_emerg[FLOW_PROTO_ICMP].bypassed_timeout = configval;
             }
         }
     }