aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-04 12:03:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-04 12:03:10 +0100
commit66ab265b3275d4a5b23573a6efa47cf2494f4f3c (patch)
treeaf606214f024b26f60c46fbc8ff8295ec6358390
parent1215abae340183478b25327e872f23df4295a86f (diff)
downloadrspamd-66ab265b3275d4a5b23573a6efa47cf2494f4f3c.tar.gz
rspamd-66ab265b3275d4a5b23573a6efa47cf2494f4f3c.zip
[Fix] Avoid double hashing for images
-rw-r--r--src/plugins/fuzzy_check.c8
1 files changed, 0 insertions, 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);