diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-29 10:40:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-29 10:40:20 +0100 |
commit | a12c35da78fb92e1d151aa897b2413313ef60190 (patch) | |
tree | b1c071e62161a7e898a9455e18a81e38d8e229bf /src | |
parent | 3360e946cec1582a50227983c623055e0b863e4e (diff) | |
download | rspamd-a12c35da78fb92e1d151aa897b2413313ef60190.tar.gz rspamd-a12c35da78fb92e1d151aa897b2413313ef60190.zip |
[Fix] Fix some more issues about duplicated fuzzy requests
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index ab326f0fe..1b24b596a 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2370,8 +2370,6 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, if (!skip_existing) { g_ptr_array_add (res, io); } - - g_ptr_array_add (res, io); } if (rule->fuzzy_images) { @@ -2399,8 +2397,6 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, if (!skip_existing) { g_ptr_array_add (res, io); } - - g_ptr_array_add (res, io); } } } @@ -2413,7 +2409,7 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, if (G_LIKELY (!(flags & FUZZY_CHECK_FLAG_NOIMAGES))) { if (mime_part->ct && - !(mime_part->flags & RSPAMD_MIME_PART_TEXT) && + !(mime_part->flags & RSPAMD_MIME_PART_TEXT|RSPAMD_MIME_PART_IMAGE) && mime_part->parsed_data.len > 0 && fuzzy_check_content_type (rule, mime_part->ct)) { if (fuzzy_module_ctx->min_bytes <= 0 || mime_part->parsed_data.len >= @@ -2435,8 +2431,6 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, if (!skip_existing) { g_ptr_array_add (res, io); } - - g_ptr_array_add (res, io); } } } |