From fba4e769f95e9fba554305e4e5893c397fd9f2fd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 12 Oct 2018 09:48:58 +0100 Subject: [PATCH] [CritFix] Fix options insertion --- src/libmime/filter.c | 3 +-- 1 file changed, 1 insertion(+), 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 { -- 2.39.5