summaryrefslogtreecommitdiffstats
path: root/rfc1035
diff options
context:
space:
mode:
authorSam Varshavchik2014-08-19 21:27:07 -0400
committerSam Varshavchik2014-08-19 21:27:07 -0400
commit8846077cf4a0593a0596e4db919b7686b7fdd66d (patch)
tree88b829396ab519491a61353c2d570b95e875b9ff /rfc1035
parent86eac1206be963bcd3108774ccac1afc7a61a930 (diff)
downloadcourier-libs-8846077cf4a0593a0596e4db919b7686b7fdd66d.tar.bz2
Xepher <xepher@xepher.net> - fix SPF include recursion lookups.
Diffstat (limited to 'rfc1035')
-rw-r--r--rfc1035/spf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/rfc1035/spf.c b/rfc1035/spf.c
index 2f0de3c..3839fde 100644
--- a/rfc1035/spf.c
+++ b/rfc1035/spf.c
@@ -502,7 +502,7 @@ static void get_domain_pfix(struct rfc1035_spf_info *info,
if (*start == 0 || *start == '/')
{
- *domain_ptr=strdup(strrchr(info->mailfrom, '@')+1);
+ *domain_ptr=strdup(info->current_domain);
if (*start == '/')
*pfix_ptr=get_dual_cidr_length(start);
@@ -523,8 +523,7 @@ static void get_domain_pfix(struct rfc1035_spf_info *info,
if (*domain_ptr == 0)
{
free(*domain_ptr);
- *domain_ptr=strdup(strrchr(info->mailfrom,
- '@')+1);
+ *domain_ptr=strdup(info->current_domain);
}
}