]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smb: remove duplicate tree_id logging
authorJason Ish <jason.ish@oisf.net>
Wed, 25 Jan 2023 18:02:27 +0000 (12:02 -0600)
committerJason Ish <jason.ish@oisf.net>
Sun, 29 Jan 2023 21:38:20 +0000 (15:38 -0600)
Remove the second occurrence of tree_id logging which appears to
always be a duplicate of the first tree_id logged, even though they
come from different data structures.

Issue: 5811

rust/src/smb/log.rs

index b13d56cc9d4ae1cf45ebfc97d665f5f59069802f..b06d8d1d78f7e1337c4e6dc72c5e185bd2c40092 100644 (file)
@@ -260,8 +260,6 @@ fn smb_common_header(jsb: &mut JsonBuilder, state: &SMBState, tx: &SMBTransactio
             }
         },
         Some(SMBTransactionTypeData::TREECONNECT(ref x)) => {
-            jsb.set_uint("tree_id", x.tree_id as u64)?;
-
             let share_name = String::from_utf8_lossy(&x.share_name);
             if x.is_pipe {
                 jsb.set_string("named_pipe", &share_name)?;