]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: fix file logging and matching
authorVictor Julien <victor@inliniac.net>
Thu, 21 Apr 2016 12:37:43 +0000 (14:37 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 25 Apr 2016 13:32:14 +0000 (15:32 +0200)
commit5c514c904ffee373b8d872ee13ff3eda7d1fec9c
treea6bddc8c8d086a623be3b6d6f2ce15b466187d53
parent9d3fd828490a3f116947bb8f35ff745d1ebe8578
smtp: fix file logging and matching

When no rules with 'file content' keywords like filemd5 or filestore
were used, and non of the file outputs would force 'output' like
'force-md5' and 'force-magic', the file would not be tracked at all.

This meant that logging wouldn't work and neither would filename and
fileext inspection.

This patch removes the tracking bypass from the SMTP code and leaves
decisions to the file API.
src/app-layer-smtp.c