aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-07 21:22:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-07 21:22:34 +0100
commite9418b12ff5cab4c366af3751906f5e95ba3df7a (patch)
treef83defcc32c8d172d536986d92df9a00a25a9227 /src/libstat/stat_process.c
parente7c1a6a9a153a5832fd7748927961949b63728cb (diff)
downloadrspamd-e9418b12ff5cab4c366af3751906f5e95ba3df7a.tar.gz
rspamd-e9418b12ff5cab4c366af3751906f5e95ba3df7a.zip
[Project] Rework scan result functions to support shadow results
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index fc42cd875..93287dc68 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -881,7 +881,7 @@ rspamd_stat_has_classifier_symbols (struct rspamd_task *task,
id = g_array_index (cl->statfiles_ids, gint, i);
st = g_ptr_array_index (st_ctx->statfiles, id);
- if (rspamd_task_find_symbol_result (task, st->stcf->symbol)) {
+ if (rspamd_task_find_symbol_result (task, st->stcf->symbol, NULL)) {
if (is_spam == !!st->stcf->is_spam) {
msg_debug_bayes ("do not autolearn %s as symbol %s is already "
"added", is_spam ? "spam" : "ham", st->stcf->symbol);