diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-24 19:01:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-24 19:01:40 +0100 |
commit | a281d6a475ceb0e7553db38a2e74656aed3a8988 (patch) | |
tree | 42a7229500ece227ec7d39d467952548e1bba7f6 /src/libstat | |
parent | 03bba7bf399390e13c6f871794d24d0de885277e (diff) | |
download | rspamd-a281d6a475ceb0e7553db38a2e74656aed3a8988.tar.gz rspamd-a281d6a475ceb0e7553db38a2e74656aed3a8988.zip |
[Project] Adopt functions
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_process.c | 2 |
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); |