flow/bypass: Properly set the ICMP emergency-bypassed value

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.
pull/6086/head
Luke Coughlan 4 years ago committed by Victor Julien
parent 1eeb96696b
commit 7fb56a9075

@ -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;
}
}
}

Loading…
Cancel
Save