From 66ab265b3275d4a5b23573a6efa47cf2494f4f3c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 4 Jul 2016 12:03:10 +0100 Subject: [PATCH] [Fix] Avoid double hashing for images --- src/plugins/fuzzy_check.c | 8 -------- 1 file changed, 8 deletions(-) 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); -- 2.39.5