]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix `all` in spf redirects
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Feb 2016 13:54:42 +0000 (13:54 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Feb 2016 13:54:42 +0000 (13:54 +0000)
Issue: #542
Reported by: @sativouf

src/libserver/spf.c

index c856d36456820ab80db506405d8ad83b352d56b9..052e024e019ea4c2b6989cb5ba3da858c80aa647 100644 (file)
@@ -300,12 +300,14 @@ rspamd_spf_process_reference (struct spf_resolved *target,
                }
                else if (cur->flags & RSPAMD_SPF_FLAG_REFRENCE) {
                        /* Process reference */
-                       rspamd_spf_process_reference (target, cur, rec, FALSE);
-
                        if (cur->flags & RSPAMD_SPF_FLAG_REDIRECT) {
                                /* Stop on redirected domain */
+                               rspamd_spf_process_reference (target, cur, rec, TRUE);
                                break;
                        }
+                       else {
+                               rspamd_spf_process_reference (target, cur, rec, FALSE);
+                       }
                }
                else {
                        if ((cur->flags & RSPAMD_SPF_FLAG_ANY) && !top) {