mirror of
https://github.com/OISF/suricata.git
synced 2026-10-12 02:07:10 +00:00
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:
committed by
Victor Julien
parent
e8cf1d95cb
commit
ad9a9204e9
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user