From e9ff5e2c6e1d78ba71d0decbe849dcac0447dec8 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 18 Mar 2021 11:09:01 +0100 Subject: [PATCH] nfs: support per-tx file accounting (cherry picked from commit 1d48601c258e944c1c3f9510b2707a6a2415a671) --- rust/src/nfs/nfs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/src/nfs/nfs.rs b/rust/src/nfs/nfs.rs index 4ccd8c73d7..14290cd290 100644 --- a/rust/src/nfs/nfs.rs +++ b/rust/src/nfs/nfs.rs @@ -623,6 +623,7 @@ impl NFSState { if let Some(NFSTransactionTypeData::FILE(ref mut d)) = tx.type_data { d.file_tracker.tx_id = tx.id - 1; } + tx.tx_data.init_files_opened(); SCLogDebug!("new_file_tx: TX FILE created: ID {} NAME {}", tx.id, String::from_utf8_lossy(file_name)); self.transactions.push(tx); -- 2.47.2