summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTodd Lyons <tlyons@exim.org>2013-04-08 10:13:28 -0700
committerTodd Lyons <tlyons@exim.org>2013-04-09 13:57:07 -0700
commitac7a78c5a176d65837fe4d0487d68b349739a126 (patch)
treefca858d957f12503f730e91ddf280abd21c621b6 /src
parent4a8ce2d88e1b24b456199ec5f2a799a6cb22ae91 (diff)
Withhold TLD load error if not defined in conf
Diffstat (limited to 'src')
-rw-r--r--src/src/dmarc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/dmarc.c b/src/src/dmarc.c
index d0a827bb8..f451fa650 100644
--- a/src/src/dmarc.c
+++ b/src/src/dmarc.c
@@ -98,7 +98,9 @@ int dmarc_init()
opendmarc_policy_status_to_str(libdm_status));
dmarc_abort = TRUE;
}
- if (opendmarc_tld_read_file(tld_file, NULL, NULL, NULL))
+ if (dmarc_tld_file == NULL)
+ dmarc_abort = TRUE;
+ else if (opendmarc_tld_read_file(tld_file, NULL, NULL, NULL))
{
log_write(0, LOG_MAIN|LOG_PANIC, "DMARC failure to load tld list %s: %d",
tld_file, errno);