]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix issue with metric-less symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Oct 2016 17:53:35 +0000 (18:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Oct 2016 17:53:54 +0000 (18:53 +0100)
src/libmime/filter.c

index a1dae9f5ca64a5f5dc957b8c06f606f2a16bbed1..e3ee3cb631636c29fb773c586cdc9979761ba9bc 100644 (file)
@@ -143,7 +143,7 @@ insert_metric_result (struct rspamd_task *task,
                        single = TRUE;
                }
                if (s->options && opts && opts != s->options &&
-                               !(sdef->flags & RSPAMD_SYMBOL_FLAG_ONEPARAM)) {
+                               !(sdef && (sdef->flags & RSPAMD_SYMBOL_FLAG_ONEPARAM))) {
                        /* Append new options */
                        s->options = g_list_concat (s->options, g_list_copy (opts));
                        /*