From 15d26f14e16150f3dcc3d238c76eb1eb490e1faa Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 1 Mar 2017 23:23:04 +0100 Subject: [PATCH] file-store: fix force store --- src/detect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index 657f831aed..7b0881ee95 100644 --- a/src/detect.c +++ b/src/detect.c @@ -895,7 +895,9 @@ static inline void DetectPostInspectFileFlagsUpdate(Flow *pflow, const SigGroupHead *sgh, uint8_t direction) { /* see if this sgh requires us to consider file storing */ - if (sgh == NULL || sgh->filestore_cnt == 0) { + if (!FileForceFilestore() && (sgh == NULL || + sgh->filestore_cnt == 0)) + { FileDisableStoring(pflow, direction); } #ifdef HAVE_MAGIC