aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-18 22:03:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-18 22:03:54 +0000
commitd9d76b801cb8578867785054adf4234d808fcca2 (patch)
tree193a1de979e6a47028713c5c7273b8d6af2ed6f8 /src
parent3619509a29c5526cc8aa8277a9cebba83f935c8b (diff)
downloadrspamd-d9d76b801cb8578867785054adf4234d808fcca2.tar.gz
rspamd-d9d76b801cb8578867785054adf4234d808fcca2.zip
[Fix] Allow to have negative actions limits
Diffstat (limited to 'src')
-rw-r--r--src/libmime/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index ecbfd24db..fbd6d9f97 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -351,7 +351,7 @@ enum rspamd_action_type
rspamd_check_action_metric (struct rspamd_task *task, struct rspamd_metric_result *mres)
{
struct rspamd_action *action, *selected_action = NULL;
- double max_score = 0, sc;
+ double max_score = -(G_MAXDOUBLE), sc;
int i;
if (task->pre_result.action == METRIC_ACTION_MAX) {