From: Jeremy Harris Date: Mon, 26 Mar 2018 16:30:47 +0000 (+0100) Subject: ARC: add guard in verify against lack of the dkim-verify context X-Git-Tag: exim-4.92-RC1~216^2~9 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ed25f66ccc56d56b3b5b7d64f4537bafbb42697;p=exim.git ARC: add guard in verify against lack of the dkim-verify context needed for body-hashing --- diff --git a/src/src/arc.c b/src/src/arc.c index eb143b697..06ca93736 100644 --- a/src/src/arc.c +++ b/src/src/arc.c @@ -993,6 +993,12 @@ acl_verify_arc(void) arc_ctx ctx = { NULL }; const uschar * res; +if (!dkim_verify_ctx) + { + DEBUG(D_acl) debug_printf("ARC: no DKIM verify context\n"); + return NULL; + } + /* AS evaluation, per https://tools.ietf.org/html/draft-ietf-dmarc-arc-protocol-10#section-6 */