]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Avoid double hashing for images
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 4 Jul 2016 11:03:10 +0000 (12:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 4 Jul 2016 11:03:10 +0000 (12:03 +0100)
src/plugins/fuzzy_check.c

index 2ca2fbbb1bbdc7d4c7dd6abda31f2bd4c43a4b53..281b4d5051ea0f1f59f22c3f2b2717c89661a0c3 100644 (file)
@@ -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);