aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-09 19:15:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-09 19:16:50 +0100
commit2bf9da4b4d9a6658a9eb01d52a372caf50442521 (patch)
tree4a500b793c13a06a877410e6c8503e8e34bc5403 /src/libserver
parentbf731647a669ffbcb01efe01b9dc775fc4e5677b (diff)
downloadrspamd-2bf9da4b4d9a6658a9eb01d52a372caf50442521.tar.gz
rspamd-2bf9da4b4d9a6658a9eb01d52a372caf50442521.zip
[Fix] Reject invalid bh for DKIM signatures earlier
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/dkim.c8
1 files changed, 8 insertions, 0 deletions
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) {