From 24c8b7263292318b70f858c6f33d7e452462581d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 29 Feb 2016 13:54:42 +0000 Subject: [PATCH] [Fix] Fix `all` in spf redirects Issue: #542 Reported by: @sativouf --- src/libserver/spf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libserver/spf.c b/src/libserver/spf.c index c856d3645..052e024e0 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -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) { -- 2.39.5