From bb0a947b79941087c9bc89f93213c81465200e7f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 18 Mar 2021 08:38:03 +0100 Subject: [PATCH] smtp: support per-tx file accounting (cherry picked from commit 0867b0dbcdd9a6973d505714928ea7323a4f5384) --- src/app-layer-smtp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index 25a22d6123..ecdf266ae2 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -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 -- 2.47.2