From: Philippe Antoine Date: Wed, 27 Nov 2024 15:08:05 +0000 (+0100) Subject: mqtt: look for a reason code in all messages X-Git-Tag: suricata-7.0.8~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bae7618184db4b31621fa9c929fe9e3b2d6f909;p=thirdparty%2Fsuricata.git mqtt: look for a reason code in all messages instead of stopping on the first message if it does not have a reason code, like conn and conn_ack Was fixed in master by big refactor 0a1062fad2ece8f900113c381147e8e8bdd1c009 --- diff --git a/rust/src/mqtt/detect.rs b/rust/src/mqtt/detect.rs index a34bc7da39..a56e2ea22a 100644 --- a/rust/src/mqtt/detect.rs +++ b/rust/src/mqtt/detect.rs @@ -365,7 +365,7 @@ pub unsafe extern "C" fn rs_mqtt_tx_get_reason_code(tx: &MQTTTransaction, result return 1; } } - _ => return 0, + _ => {}, } } return 0;