diff --git a/rust/src/mqtt/parser.rs b/rust/src/mqtt/parser.rs index 75f622a200..39da6f96fa 100644 --- a/rust/src/mqtt/parser.rs +++ b/rust/src/mqtt/parser.rs @@ -116,7 +116,9 @@ fn parse_properties(input: &[u8], precond: bool) -> IResult<&[u8], Option { - props.push(val); + if val != MQTTProperty::UNKNOWN { + props.push(val); + } newrem = rem2; } Err(e) => return Err(e),