aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-12 09:48:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-12 09:48:58 +0100
commitfba4e769f95e9fba554305e4e5893c397fd9f2fd (patch)
tree1698d0b5c676af3c7ace013b8935afc29d5aca9f /src
parentca3a40439aba6681401521d8d43f4e283b4a72d5 (diff)
downloadrspamd-fba4e769f95e9fba554305e4e5893c397fd9f2fd.tar.gz
rspamd-fba4e769f95e9fba554305e4e5893c397fd9f2fd.zip
[CritFix] Fix options insertion
Diffstat (limited to 'src')
-rw-r--r--src/libmime/filter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index ad9a53a2f..7d7836d6f 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -242,11 +242,10 @@ insert_metric_result (struct rspamd_task *task,
k = kh_get (rspamd_options_hash, s->options, opt);
if (k == kh_end (s->options)) {
- single = TRUE;
+ rspamd_task_add_result_option (task, s, opt);
}
else {
s->nshots ++;
- rspamd_task_add_result_option (task, s, opt);
}
}
else {