Skip to content

Commit

Permalink
mqtt: look for a reason code in all messages
Browse files Browse the repository at this point in the history
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 0a1062f
  • Loading branch information
catenacyber authored and victorjulien committed Dec 1, 2024
1 parent 552dea9 commit 1bae761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/mqtt/detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ pub unsafe extern "C" fn rs_mqtt_tx_get_reason_code(tx: &MQTTTransaction, result
return 1;
}
}
_ => return 0,
_ => {},
}
}
return 0;
Expand Down

0 comments on commit 1bae761

Please sign in to comment.