From: Vsevolod Stakhov Date: Fri, 12 Oct 2018 08:48:58 +0000 (+0100) Subject: [CritFix] Fix options insertion X-Git-Tag: 1.8.1~44 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fba4e769f95e9fba554305e4e5893c397fd9f2fd;p=rspamd.git [CritFix] Fix options insertion --- 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 {