aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/spf.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-29 13:54:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-29 13:54:42 +0000
commit24c8b7263292318b70f858c6f33d7e452462581d (patch)
tree0c4a82b5fb36227439fa03ec6de156f38d2e9290 /src/libserver/spf.c
parent3ba7a3c53351393685f3cc2bc3c9673c0456013f (diff)
downloadrspamd-24c8b7263292318b70f858c6f33d7e452462581d.tar.gz
rspamd-24c8b7263292318b70f858c6f33d7e452462581d.zip
[Fix] Fix `all` in spf redirects
Issue: #542 Reported by: @sativouf
Diffstat (limited to 'src/libserver/spf.c')
-rw-r--r--src/libserver/spf.c6
1 files 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) {