summaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-29 14:02:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-29 14:02:48 +0000
commite4f52703c82924eeb3240a457ac819451b835468 (patch)
tree42258924ab99c3eba4ba06a7abd410ace3379d9c /src/libmime
parent4f4aec0c82012de2f9ff7f9ca6f43855b575cd07 (diff)
downloadrspamd-e4f52703c82924eeb3240a457ac819451b835468.tar.gz
rspamd-e4f52703c82924eeb3240a457ac819451b835468.zip
[Minor] Fix inversed logic
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/scan_result.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c
index 07800ea06..8f9d799fe 100644
--- a/src/libmime/scan_result.c
+++ b/src/libmime/scan_result.c
@@ -99,6 +99,8 @@ rspamd_create_metric_result (struct rspamd_task *task,
metric_res->actions_config[i].flags = RSPAMD_ACTION_RESULT_DEFAULT;
if (!(act->flags & RSPAMD_ACTION_NO_THRESHOLD)) {
metric_res->actions_config[i].cur_limit = act->threshold;
+ }
+ else {
metric_res->actions_config[i].flags |= RSPAMD_ACTION_RESULT_NO_THRESHOLD;
}
metric_res->actions_config[i].action = act;