summaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstat')
-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 978c8f3c0..f58bf6150 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -1093,7 +1093,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 (g_hash_table_lookup (mres->symbols, st->stcf->symbol)) {
+ if (rspamd_task_find_symbol_result (task, st->stcf->symbol)) {
if (is_spam == !!st->stcf->is_spam) {
msg_debug_task ("do not autolearn %s as symbol %s is already "
"added", is_spam ? "spam" : "ham", st->stcf->symbol);