modbus: abort flow parsing on flood

Ticket: 6987

Let's not spend more resources for a flow which is trying to
make us do it...
pull/11393/head
Philippe Antoine 2 years ago committed by Victor Julien
parent ce727cf4b1
commit 37509e8e0e

@ -189,7 +189,7 @@ impl ModbusState {
None => {
let mut tx = match self.new_tx() {
Some(tx) => tx,
None => return AppLayerResult::ok(),
None => return AppLayerResult::err(),
};
tx.set_events_from_flags(&msg.error_flags);
tx.request = Some(msg);
@ -215,7 +215,7 @@ impl ModbusState {
None => {
let mut tx = match self.new_tx() {
Some(tx) => tx,
None => return AppLayerResult::ok(),
None => return AppLayerResult::err(),
};
if msg
.access_type

Loading…
Cancel
Save