diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 11:35:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 11:35:52 +0100 |
commit | b80e8b8477dd019ad9384541d499b57f5432393a (patch) | |
tree | 6d7e2da28b6a87b6e25acb0693659b9ace19aff7 /src/libserver/protocol.c | |
parent | 13724fefdc9dbc31609938c06d6c99ba47d1729d (diff) | |
download | rspamd-b80e8b8477dd019ad9384541d499b57f5432393a.tar.gz rspamd-b80e8b8477dd019ad9384541d499b57f5432393a.zip |
[Project] Rework some more functions to work with shadow results
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 35d50b909..9d1276064 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -1182,7 +1182,7 @@ rspamd_scan_result_ucl (struct rspamd_task *task, const gchar *subject; struct rspamd_passthrough_result *pr = NULL; - action = rspamd_check_action_metric (task, &pr); + action = rspamd_check_action_metric (task, &pr, NULL); is_spam = !(action->flags & RSPAMD_ACTION_HAM); if (task->cmd == CMD_CHECK) { @@ -1761,7 +1761,7 @@ end: if (metric_res != NULL) { - action = rspamd_check_action_metric (task, NULL); + action = rspamd_check_action_metric (task, NULL, NULL); /* TODO: handle custom actions in stats */ if (action->action_type == METRIC_ACTION_SOFT_REJECT && (task->flags & RSPAMD_TASK_FLAG_GREYLISTED)) { |