aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-30 16:56:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-30 16:56:26 +0000
commitfb7bf120f964972e973d62df64e92b5638a0125b (patch)
treec62514be26d28ca07fdd5dbf70f17062999b388e /src
parentc90979e9ee739f6584cf732c45e1b5fb7c641b1c (diff)
downloadrspamd-fb7bf120f964972e973d62df64e92b5638a0125b.tar.gz
rspamd-fb7bf120f964972e973d62df64e92b5638a0125b.zip
[Fix] Fix checking of DKIM bodies that needs just `\n` to be added
Diffstat (limited to 'src')
-rw-r--r--src/libserver/dkim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index 00b633b18..33459adc0 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -1869,7 +1869,7 @@ rspamd_dkim_check (rspamd_dkim_context_t *ctx,
EVP_MD_CTX_reset (cpy_ctx);
#endif
EVP_MD_CTX_copy (cpy_ctx, ctx->common.body_hash);
- EVP_DigestUpdate (cpy_ctx, "\n", 2);
+ EVP_DigestUpdate (cpy_ctx, "\n", 1);
EVP_DigestFinal_ex (cpy_ctx, raw_digest, NULL);
if (memcmp (ctx->bh, raw_digest, ctx->bhlen) != 0) {