]> source.dussan.org Git - rspamd.git/commitdiff
Fix fuzzy mime strings with only type.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 May 2015 10:23:21 +0000 (11:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 May 2015 10:23:21 +0000 (11:23 +0100)
Issue: #283
Reported by: @moisseev

src/plugins/fuzzy_check.c

index f7a59522c25589be72d7442da803cfbda5130446..2f7fb29045a088d6828d0790026444abbb37f1c2 100644 (file)
@@ -215,6 +215,7 @@ parse_mime_types (const gchar *str)
                                                        sizeof (struct fuzzy_mime_type));
                        type->type = g_pattern_spec_new (strvec[i]);
                        type->subtype = NULL;
+                       res = g_list_prepend (res, type);
                }
        }