aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/roll_history.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/roll_history.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/roll_history.c')
-rw-r--r--src/libserver/roll_history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/roll_history.c b/src/libserver/roll_history.c
index 812df927e..7cc0490c1 100644
--- a/src/libserver/roll_history.c
+++ b/src/libserver/roll_history.c
@@ -125,7 +125,7 @@ rspamd_roll_history_update (struct roll_history *history,
else {
row->score = metric_res->score;
row->action = rspamd_check_action_metric (task, metric_res);
- row->required_score = metric_res->actions_limits[METRIC_ACTION_REJECT];
+ row->required_score = rspamd_task_get_required_score (task, metric_res);
cbdata.pos = row->symbols;
cbdata.remain = sizeof (row->symbols);
g_hash_table_foreach (metric_res->symbols,