[opendmarc-dev] 1.2.1 Beta2 available
Murray S. Kucherawy
msk at blackops.org
Tue Apr 1 11:46:43 PDT 2014
Does this patch help?
-MSK
-------------- next part --------------
diff --git a/opendmarc/opendmarc.c b/opendmarc/opendmarc.c
index b42bd98..ad6e567 100644
--- a/opendmarc/opendmarc.c
+++ b/opendmarc/opendmarc.c
@@ -2133,8 +2133,9 @@ mlfi_eom(SMFICTX *ctx)
/* skip it if it's not one of ours */
if (strcasecmp(ar.ares_host, authservid) != 0 &&
- !dmarcf_match(ar.ares_host, conf->conf_trustedauthservids,
- FALSE))
+ (conf->conf_trustedauthservids != NULL &&
+ !dmarcf_match(ar.ares_host, conf->conf_trustedauthservids,
+ FALSE)))
{
unsigned char *slash;
@@ -2167,9 +2168,10 @@ mlfi_eom(SMFICTX *ctx)
*slash = '\0';
if (strcasecmp(ar.ares_host, authservid) != 0 &&
- !dmarcf_match(ar.ares_host,
- conf->conf_trustedauthservids,
- FALSE) ||
+ (conf->conf_trustedauthservids != NULL &&
+ !dmarcf_match(ar.ares_host,
+ conf->conf_trustedauthservids,
+ FALSE)) ||
strcmp(slash + 1, dfc->mctx_jobid) != 0)
{
*slash = '/';
More information about the opendmarc-dev
mailing list