diff options
Diffstat (limited to 'rfc1035/spf.c')
| -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);  		}  	} | 
