]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow/bypass: Properly set the ICMP emergency-bypassed value 6086/head
authorLuke Coughlan <lcoughlan5@gmail.com>
Mon, 26 Apr 2021 12:05:15 +0000 (13:05 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 26 Apr 2021 13:17:32 +0000 (15:17 +0200)
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.

src/flow.c

index 03ef268806de02cf47008469df53d8571d2fdff6..4a94c4ef9bb8e1db64014c9ba20c49fda2a054ac 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;
             }
         }
     }