Skip to content

Commit

Permalink
smtp: support per-tx file accounting
Browse files Browse the repository at this point in the history
(cherry picked from commit 0867b0d)
  • Loading branch information
victorjulien authored and inashivb committed Apr 21, 2022
1 parent e137627 commit bb0a947
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app-layer-smtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb0a947

Please sign in to comment.