Re: [PATCH 2/5] mountd: parse ip address earlier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 02, 2012 at 05:37:52PM -0400, J. Bruce Fields wrote:
> @@ -1057,13 +1066,8 @@ static void nfsd_export(FILE *f)
>  
>  	auth_reload();
>  
> -	if (use_ipaddr) {
> -		struct addrinfo *tmp;
> -		tmp = host_pton(dom);
> -		if (tmp == NULL)
> -			goto out;
> -		ai = client_resolve(tmp->ai_addr);
> -		freeaddrinfo(tmp);
> +	if (is_ipaddr_client(dom)) {

Sorry, this is in the wrong patch; resending in a moment.

--b.

> +		ai = lookup_client_addr(dom);
>  		if (!ai)
>  			goto out;
>  	}
> -- 
> 1.7.7.6
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux