]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mqtt: look for a reason code in all messages 12188/head
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 27 Nov 2024 15:08:05 +0000 (16:08 +0100)
committerVictor Julien <victor@inliniac.net>
Sun, 1 Dec 2024 06:49:45 +0000 (07:49 +0100)
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

index a34bc7da3906c543ff78b5a5bfe70aff3354125a..a56e2ea22a3d040f2387117eb9ec3f7d760e49c7 100644 (file)
@@ -365,7 +365,7 @@ pub unsafe extern "C" fn rs_mqtt_tx_get_reason_code(tx: &MQTTTransaction, result
                     return 1;
                 }
             }
-            _ => return 0,
+            _ => {},
         }
     }
     return 0;