]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix gtube detection if nothing else is presented
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jun 2018 22:56:55 +0000 (23:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jun 2018 22:56:55 +0000 (23:56 +0100)
src/libmime/message.c

index e5e43c5bec139160335ec73e9ee8131db22bb7df..6208f6424bc2286414bb4cd65739122b06408eaa 100644 (file)
@@ -607,7 +607,7 @@ rspamd_check_gtube (struct rspamd_task *task, struct rspamd_mime_text_part *part
                g_assert (rspamd_multipattern_compile (gtube_matcher, NULL));
        }
 
-       if (part->content && part->content->len > sizeof (gtube_pattern_reject) &&
+       if (part->content && part->content->len >= sizeof (gtube_pattern_reject) &&
                        part->content->len <= max_check_size) {
                if ((ret = rspamd_multipattern_lookup (gtube_matcher, part->content->data,
                                part->content->len,