From: Vsevolod Stakhov Date: Wed, 9 Aug 2017 18:15:20 +0000 (+0100) Subject: [Fix] Reject invalid bh for DKIM signatures earlier X-Git-Tag: 1.6.4~22^2~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a29085975194c17d31019768a7f7ec374642960;p=rspamd.git [Fix] Reject invalid bh for DKIM signatures earlier --- diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index 06adab305..72cc7232f 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -2196,6 +2196,14 @@ rspamd_dkim_check (rspamd_dkim_context_t *ctx, } } } + else { + msg_debug_dkim ( + "bh value mismatch: %*xs versus %*xs", + dlen, ctx->bh, + dlen, cached_bh->digest_normal); + + return DKIM_REJECT; + } } if (cpy_ctx) {