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