summaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-18 09:57:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-18 09:57:48 +0000
commitde42879925e6e210f21114e48e7c6dfdbce8fb37 (patch)
treede1688f0cf699ce021718ec86039bcb8ad7c8654 /src/hs_helper.c
parent4ba63cb24ae911f208e7c39dd4b28d61d09349fd (diff)
downloadrspamd-de42879925e6e210f21114e48e7c6dfdbce8fb37.tar.gz
rspamd-de42879925e6e210f21114e48e7c6dfdbce8fb37.zip
Add more sanity checks when loading hyperscan cache
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r--src/hs_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c
index a34d1d885..7e8f7f1c5 100644
--- a/src/hs_helper.c
+++ b/src/hs_helper.c
@@ -135,7 +135,7 @@ rspamd_hs_helper_cleanup_dir (struct hs_helper_ctx *ctx, gboolean forced)
for (i = 0; i < globbuf.gl_pathc; i++) {
if (forced ||
!rspamd_re_cache_is_valid_hyperscan_file (ctx->cfg->re_cache,
- globbuf.gl_pathv[i], TRUE)) {
+ globbuf.gl_pathv[i], TRUE, TRUE)) {
if (unlink (globbuf.gl_pathv[i]) == -1) {
msg_err ("cannot unlink %s: %s", globbuf.gl_pathv[i],
strerror (errno));