summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-03-26 17:30:47 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2018-04-04 00:21:37 +0100
commit0ed25f66ccc56d56b3b5b7d64f4537bafbb42697 (patch)
treeaa3098b13f8eae3046c5244b3e20face8f99b966 /src
parentca5c132adacf024c8140446b7cb402dd923bc4c3 (diff)
ARC: add guard in verify against lack of the dkim-verify context
needed for body-hashing
Diffstat (limited to 'src')
-rw-r--r--src/src/arc.c6
1 files changed, 6 insertions, 0 deletions
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
*/