diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-30 18:32:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-30 18:32:11 +0400 |
commit | 9e6acadd7ce323f42ebed02237d064305df32249 (patch) | |
tree | 11ecda90995e02204d5f14c1fcabee893bdceab3 /src/smtp_utils.c | |
parent | b3c36d4946f675619b81c9223f5ac1a86c55c55c (diff) | |
download | rspamd-9e6acadd7ce323f42ebed02237d064305df32249.tar.gz rspamd-9e6acadd7ce323f42ebed02237d064305df32249.zip |
* Improve performance of settings lookup
Diffstat (limited to 'src/smtp_utils.c')
-rw-r--r-- | src/smtp_utils.c | 4 |
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) { |