From 1b152c5db87f6bc306e51a24b5024d0083f9b1bb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 Jul 2016 15:02:20 +0100 Subject: [Feature] Correctly work when there is no hard reject action --- src/libserver/symbols_cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libserver/symbols_cache.c') 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; -- cgit v1.2.3