]> 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)
committerJeff Lucovsky <jeff@lucovsky.org>
Thu, 29 Apr 2021 13:29:45 +0000 (09:29 -0400)
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 dc196eda176a8fe0b01920064ab08861a4f11b59..a45629dbe6f2bc8b53418caa280e579c478703a7 100644 (file)
@@ -1026,7 +1026,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;
             }
         }
     }