mqtt: Improve frame parsing w/mult. PDUs

This commit improves the mqtt parsing of frames to handle multiple PDUs.

Issue: 6592
pull/10419/head
Jeff Lucovsky 10 months ago committed by Victor Julien
parent fa98c48e65
commit f9a20dafc6

@ -433,8 +433,8 @@ impl MQTTState {
let _pdu = Frame::new(
flow,
&stream_slice,
input,
current.len() as i64,
current,
(current.len() - rem.len()) as i64,
MQTTFrameType::Pdu as u8,
);
SCLogDebug!("request msg {:?}", msg);
@ -518,8 +518,8 @@ impl MQTTState {
let _pdu = Frame::new(
flow,
&stream_slice,
input,
input.len() as i64,
current,
(current.len() - rem.len()) as i64,
MQTTFrameType::Pdu as u8,
);

Loading…
Cancel
Save