aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-30 18:32:11 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-30 18:32:11 +0400
commit9e6acadd7ce323f42ebed02237d064305df32249 (patch)
tree11ecda90995e02204d5f14c1fcabee893bdceab3 /src/smtp_utils.c
parentb3c36d4946f675619b81c9223f5ac1a86c55c55c (diff)
downloadrspamd-9e6acadd7ce323f42ebed02237d064305df32249.tar.gz
rspamd-9e6acadd7ce323f42ebed02237d064305df32249.zip
* Improve performance of settings lookup
Diffstat (limited to 'src/smtp_utils.c')
-rw-r--r--src/smtp_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smtp_utils.c b/src/smtp_utils.c
index 5aa5b5e41..27dffd275 100644
--- a/src/smtp_utils.c
+++ b/src/smtp_utils.c
@@ -152,11 +152,11 @@ smtp_metric_callback (gpointer key, gpointer value, gpointer ud)
task = cd->session->task;
- if (!check_metric_settings (task, metric_res->metric, &ms, &rs)) {
+ if (!check_metric_settings (metric_res, &ms, &rs)) {
ms = metric_res->metric->required_score;
rs = metric_res->metric->reject_score;
}
- if (! check_metric_action_settings (task, metric_res->metric, metric_res->score, &action)) {
+ if (! check_metric_action_settings (task, metric_res, metric_res->score, &action)) {
action = check_metric_action (metric_res->score, ms, metric_res->metric);
}
if (metric_res->score >= ms) {