Ticket: 4862
A transaction to client is always considered
complete in the direction to server and vice versa.
Otherwise, transactions are never complete for
AppLayerParserTransactionsCleanup
(cherry picked from commit
1b10848d84f6417a4030e5814db246b369b77593)
#[no_mangle]
pub extern "C" fn rs_mqtt_tx_get_alstate_progress(
tx: *mut std::os::raw::c_void,
- direction: u8,
+ _direction: u8,
) -> std::os::raw::c_int {
let tx = cast_pointer!(tx, MQTTTransaction);
if tx.complete {
- if direction == core::STREAM_TOSERVER {
- if tx.toserver {
- return 1;
- }
- } else if direction == core::STREAM_TOCLIENT {
- if tx.toclient {
- return 1;
- }
- }
+ return 1;
}
return 0;
}