diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-26 23:56:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-26 23:56:55 +0100 |
commit | 86dd306933f46dc1cef0c933ba63319121dca4f5 (patch) | |
tree | 44424e68d867271a9a6cc0b8b08a830725d5c979 | |
parent | c8e35d120481f10b599aab6e215fe5e8e72037a5 (diff) | |
download | rspamd-86dd306933f46dc1cef0c933ba63319121dca4f5.tar.gz rspamd-86dd306933f46dc1cef0c933ba63319121dca4f5.zip |
[Minor] Fix gtube detection if nothing else is presented
-rw-r--r-- | src/libmime/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index e5e43c5be..6208f6424 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -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, |