From: Vsevolod Stakhov Date: Mon, 4 Jul 2016 11:03:10 +0000 (+0100) Subject: [Fix] Avoid double hashing for images X-Git-Tag: 1.3.0~186 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=66ab265b3275d4a5b23573a6efa47cf2494f4f3c;p=rspamd.git [Fix] Avoid double hashing for images --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 2ca2fbbb1..281b4d505 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2053,14 +2053,6 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, fuzzy_module_ctx->min_height) { if (fuzzy_module_ctx->min_width <= 0 || image->width >= fuzzy_module_ctx->min_width) { - if (c == FUZZY_CHECK) { - io = fuzzy_cmd_from_data_part (rule, c, flag, value, - task->task_pool, - image->data->data, image->data->len); - if (io) { - g_ptr_array_add (res, io); - } - } io = fuzzy_cmd_from_data_part (rule, c, flag, value, task->task_pool, image->data->data, image->data->len);