diff options
| author | Sam Varshavchik | 2014-08-19 21:27:07 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2014-08-19 21:27:07 -0400 | 
| commit | 8846077cf4a0593a0596e4db919b7686b7fdd66d (patch) | |
| tree | 88b829396ab519491a61353c2d570b95e875b9ff | |
| parent | 86eac1206be963bcd3108774ccac1afc7a61a930 (diff) | |
| download | courier-libs-8846077cf4a0593a0596e4db919b7686b7fdd66d.tar.bz2 | |
Xepher <xepher@xepher.net> - fix SPF include recursion lookups.
| -rw-r--r-- | rfc1035/spf.c | 5 | 
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);  		}  	} | 
