From 1bae7618184db4b31621fa9c929fe9e3b2d6f909 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 27 Nov 2024 16:08:05 +0100 Subject: [PATCH] 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 --- rust/src/mqtt/detect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2