Created
March 7, 2016 13:13
-
-
Save codingberg/b7c335580d2e9cd928f7 to your computer and use it in GitHub Desktop.
Fix: OpenDMARC always set spf=pass in Authentication-Results header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Nurp opendmarc-1.3.1/opendmarc/opendmarc.c opendmarc/opendmarc/opendmarc.c | |
--- opendmarc-1.3.1/opendmarc/opendmarc.c 2015-02-23 21:31:51.000000000 +0100 | |
+++ opendmarc/opendmarc/opendmarc.c 2016-03-02 21:46:15.673505269 +0100 | |
@@ -2524,7 +2524,7 @@ mlfi_eom(SMFICTX *ctx) | |
spf_result, | |
spf_mode, | |
human); | |
- switch (spf_mode) | |
+ switch (spf_result) | |
{ | |
case DMARC_POLICY_SPF_OUTCOME_PASS: | |
pass_fail = "pass"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment