aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-27 15:02:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-27 15:02:20 +0100
commit1b152c5db87f6bc306e51a24b5024d0083f9b1bb (patch)
treedf603d47ab1df7d87c1de112d91da5cc87c2f6bd /src/libserver/symbols_cache.c
parent874af6856f4362ab6077b37a5defa8f3aa13d395 (diff)
downloadrspamd-1b152c5db87f6bc306e51a24b5024d0083f9b1bb.tar.gz
rspamd-1b152c5db87f6bc306e51a24b5024d0083f9b1bb.zip
[Feature] Correctly work when there is no hard reject action
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r--src/libserver/symbols_cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index b4a3275d8..2e32c9c6c 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -1049,8 +1049,7 @@ rspamd_symbols_cache_metric_limit (struct rspamd_task *task,
res = g_hash_table_lookup (task->results, metric->name);
if (res) {
-
- ms = res->actions_limits[METRIC_ACTION_REJECT];
+ ms = rspamd_task_get_required_score (task, res);
if (!isnan (ms) && cp->lim < ms) {
cp->rs = res;