]> git.ipfire.org Git - thirdparty/suricata.git/commit
files: properly close files on flow timeout 3336/head
authorVictor Julien <victor@inliniac.net>
Fri, 6 Apr 2018 10:57:24 +0000 (12:57 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 9 Apr 2018 11:23:39 +0000 (13:23 +0200)
commit2e8fd612a63902829a3c518729fbc07c26ce92a1
treef9d686d02d45a260a1241a2275d8f5c79af5a20b
parent73d94fff731a50ebbe9b5f898c1592592094beea
files: properly close files on flow timeout

If a file transfer stops on flow timeout, it won't be closed or
truncated. This patch makes sure that in such cases the files
are indeed truncated. This fixes the filestore-v2 output module,
as that requires a sha256 for storing the partial file correctly.
src/output-filedata.c
src/util-file.c
src/util-file.h