mqtt: do not store unknown property

UNKNOWN property carries 1 byte in the MQTTProperty enum variant. It is
neither logged nor matched on, so, don't store it.

Ticket: 8839
This commit is contained in:
Shivani Bhardwaj
2026-09-08 20:24:51 +02:00
committed by Victor Julien
parent e8cf1d95cb
commit ad9a9204e9
+3 -1
View File
@@ -116,7 +116,9 @@ fn parse_properties(input: &[u8], precond: bool) -> IResult<&[u8], Option<Vec<MQ
while !newrem.is_empty() {
match parse_property(newrem) {
Ok((rem2, val)) => {
props.push(val);
if val != MQTTProperty::UNKNOWN {
props.push(val);
}
newrem = rem2;
}
Err(e) => return Err(e),