summaryrefslogtreecommitdiff
path: root/src/src/dkim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/src/dkim.c')
-rw-r--r--src/src/dkim.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/src/dkim.c b/src/src/dkim.c
index 9a13e2a80..528ce82c4 100644
--- a/src/src/dkim.c
+++ b/src/src/dkim.c
@@ -138,9 +138,12 @@ store_pool = dkim_verify_oldpool;
static void
dkim_exim_verify_log_sig(pdkim_signature * sig)
{
-gstring * logmsg = string_catn(NULL, "DKIM: ", 6);
+gstring * logmsg;
uschar * s;
+if (!sig) return;
+
+logmsg = string_catn(NULL, "DKIM: ", 6);
if (!(s = sig->domain)) s = US"<UNSET>";
logmsg = string_append(logmsg, 2, "d=", s);
if (!(s = sig->selector)) s = US"<UNSET>";
@@ -306,6 +309,8 @@ dkim_exim_acl_setup(uschar * id)
pdkim_signature * sig;
uschar * cmp_val;
+dkim_verify_status = US"none";
+dkim_verify_reason = US"";
dkim_cur_sig = NULL;
dkim_cur_signer = id;