Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mqtt rust keywords 4863 v2 #11374

Closed
Prev Previous commit
fixup! detect/mqtt: move keywords to rust
  • Loading branch information
catenacyber committed Jun 27, 2024
commit 206b3857c72e89e0f604cd0c82496cefe5b4d943
4 changes: 2 additions & 2 deletions rust/src/mqtt/detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static mut G_MQTT_CONN_FLAGS_BUFFER_ID: c_int = 0;
unsafe extern "C" fn unsub_topic_get_data(
tx: *const c_void, _flow_flags: u8, local_id: u32, buffer: *mut *const u8, buffer_len: *mut u32,
) -> bool {
let ml = unsafe { UNSUB_TOPIC_MATCH_LIMIT };
let ml = UNSUB_TOPIC_MATCH_LIMIT;
if ml > 0 && local_id >= ml as u32 {
return false;
}
Expand Down Expand Up @@ -346,7 +346,7 @@ unsafe extern "C" fn unsub_topic_setup(
unsafe extern "C" fn sub_topic_get_data(
tx: *const c_void, _flow_flags: u8, local_id: u32, buffer: *mut *const u8, buffer_len: *mut u32,
) -> bool {
let ml = unsafe { SUB_TOPIC_MATCH_LIMIT };
let ml = SUB_TOPIC_MATCH_LIMIT;
if ml > 0 && local_id >= ml as u32 {
return false;
}
Expand Down
Loading