aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/images.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-08 17:46:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-08 17:47:44 +0000
commitf449e295fd9b11acdff158a091a4086dd34e6837 (patch)
treeadc78ae2a20e10da2e83b8253a22c9c184bac998 /src/libmime/images.c
parentc245ec1df1d9e53dd0f4f28239688d40bc3d9d28 (diff)
downloadrspamd-f449e295fd9b11acdff158a091a4086dd34e6837.tar.gz
rspamd-f449e295fd9b11acdff158a091a4086dd34e6837.zip
[Feature] Add fuzzy logic for images
Diffstat (limited to 'src/libmime/images.c')
-rw-r--r--src/libmime/images.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmime/images.c b/src/libmime/images.c
index 57528fb54..e6fe8ee4b 100644
--- a/src/libmime/images.c
+++ b/src/libmime/images.c
@@ -334,6 +334,7 @@ rspamd_image_normalize (struct rspamd_task *task, struct rspamd_image *img)
}
msg_debug_task ("avg: %.0f, sig: %32xs, bits: %d", avg, sig, b);
+ memcpy (img->fuzzy_sig, sig, sizeof (img->fuzzy_sig));
gdImageDestroy (dst);
rspamd_mempool_add_destructor (task->task_pool, rspamd_array_free_hard,