From f42c8595b9a0bf8a56b3bef9154b23b6ab62ac8f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 9 Dec 2016 18:47:50 +0000 Subject: [PATCH] [Minor] Adopt plugin --- src/plugins/fuzzy_check.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 1f3561706..a6f287e7b 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1324,10 +1324,15 @@ fuzzy_cmd_from_image_part (struct fuzzy_rule *rule, if (sh != NULL) { memcpy (&shcmd->sgl, sh->hashes, sizeof (shcmd->sgl)); shcmd->basic.shingles_count = RSPAMD_SHINGLE_SIZE; +#if 0 + for (unsigned int i = 0; i < RSPAMD_SHINGLE_SIZE; i ++) { + msg_err ("shingle %d: %L", i, sh->hashes[i]); + } +#endif } rspamd_cryptobox_hash (shcmd->basic.digest, - (const guchar *)img->dct, sizeof (gdouble) * 64 * 64, + (const guchar *)img->dct, RSPAMD_DCT_LEN / NBBY, rule->hash_key->str, rule->hash_key->len); msg_debug_pool ("loading shingles of type %s with key %*xs", -- 2.39.5