]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp: support per-tx file accounting
authorVictor Julien <victor@inliniac.net>
Thu, 18 Mar 2021 07:38:03 +0000 (08:38 +0100)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 21 Apr 2022 07:31:56 +0000 (13:01 +0530)
(cherry picked from commit 0867b0dbcdd9a6973d505714928ea7323a4f5384)

src/app-layer-smtp.c

index 25a22d6123194c2308268e5a75a52678132689d4..ecdf266ae262478f1cd6927819e1b1ae22a47659 100644 (file)
@@ -380,6 +380,7 @@ static void SMTPNewFile(SMTPTransaction *tx, File *file)
 #endif
     FlagDetectStateNewFile(tx);
     FileSetTx(file, tx->tx_id);
+    tx->tx_data.files_opened++;
 
     /* set inspect sizes used in file pruning logic.
      * TODO consider moving this to the file.data code that