]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix actions in rolling history
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Oct 2016 09:57:46 +0000 (10:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Oct 2016 09:57:46 +0000 (10:57 +0100)
src/libserver/roll_history.c

index 7cc0490c1a4578251f7982f6fddd6464a6a09aaa..620397f38c9b706826083673484e3a3d99ceefcd 100644 (file)
@@ -124,7 +124,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->action = metric_res->action;
                row->required_score = rspamd_task_get_required_score (task, metric_res);
                cbdata.pos = row->symbols;
                cbdata.remain = sizeof (row->symbols);