]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix options insertion
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Oct 2018 08:48:58 +0000 (09:48 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Oct 2018 08:48:58 +0000 (09:48 +0100)
src/libmime/filter.c

index ad9a53a2f19a47517d3998769a16363fdc8916ba..7d7836d6ff773277ed585aa7067e51660aa9cd44 100644 (file)
@@ -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 {