summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-03-30 15:41:52 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2019-03-30 19:37:21 +0000
commit590fd9eeeb31a0e3815719e5b577469ffe9771bd (patch)
treec9ff49db34d280addec855f27a0c8969e54fc358 /src
parente6024a5e9e193f559508d05ee401ae8f7f3c25ae (diff)
DMARC: check for empty filename for TLD file. Patch testsuite to not break on missing default TLD file.
Diffstat (limited to 'src')
-rw-r--r--src/src/dmarc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/src/dmarc.c b/src/src/dmarc.c
index c4edc9159..5bf33032a 100644
--- a/src/src/dmarc.c
+++ b/src/src/dmarc.c
@@ -109,15 +109,15 @@ if (libdm_status != DMARC_PARSE_OKAY)
opendmarc_policy_status_to_str(libdm_status));
dmarc_abort = TRUE;
}
-if (!dmarc_tld_file)
+if (!dmarc_tld_file || !*dmarc_tld_file)
{
DEBUG(D_receive) debug_printf("DMARC: no dmarc_tld_file\n");
dmarc_abort = TRUE;
}
else if (opendmarc_tld_read_file(CS dmarc_tld_file, NULL, NULL, NULL))
{
- log_write(0, LOG_MAIN|LOG_PANIC, "DMARC failure to load tld list %s: %d",
- dmarc_tld_file, errno);
+ log_write(0, LOG_MAIN|LOG_PANIC, "DMARC failure to load tld list '%s': %s",
+ dmarc_tld_file, strerror(errno));
dmarc_abort = TRUE;
}
if (!sender_host_address)