aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 11:08:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 11:16:39 +0100
commit90cdafdcf6351261d4a9bb48dad3785999993324 (patch)
treebdb1224aebd008dc53891712a7760184e28c3e69 /src/libstat
parent793ac69276141a0c453ede65ffc3cfac14cc42bf (diff)
downloadrspamd-90cdafdcf6351261d4a9bb48dad3785999993324.tar.gz
rspamd-90cdafdcf6351261d4a9bb48dad3785999993324.zip
Fix double free if multiple classifiers are defined.
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/stat_process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index e4e4c692b..f13ccc96e 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -168,6 +168,7 @@ rspamd_stat_preprocess (struct rspamd_stat_ctx *st_ctx,
while (cur) {
clcf = (struct rspamd_classifier_config *)cur->data;
+ st_list = NULL;
if (clcf->pre_callbacks != NULL) {
st_list = rspamd_lua_call_cls_pre_callbacks (clcf, task, FALSE,