diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index a9b04d8c91..e8dc4d585f 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -397,6 +397,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