From: Jason Ish Date: Wed, 25 Jan 2023 18:02:27 +0000 (-0600) Subject: smb: remove duplicate tree_id logging X-Git-Tag: suricata-6.0.11~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e0ce39190db0560d12bf0f5d2a65f91bfaecd8b;p=thirdparty%2Fsuricata.git smb: remove duplicate tree_id logging 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) --- diff --git a/rust/src/smb/log.rs b/rust/src/smb/log.rs index a05682cb69..73a679ddcf 100644 --- a/rust/src/smb/log.rs +++ b/rust/src/smb/log.rs @@ -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)?;