]> 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)
committerVictor Julien <vjulien@oisf.net>
Tue, 28 Mar 2023 09:36:51 +0000 (11:36 +0200)
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

(cherry picked from commit 67baab573b8046ace275e6c0f671f62af22a49a6)

rust/src/smb/log.rs

index a05682cb692a6b4adaad0f2903c623eb071ff758..73a679ddcf5781a2509812439af12fdedae344b7 100644 (file)
@@ -258,8 +258,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)?;