Re: [PATCH 1/6] mount: Fix a bug in the legacy version of nfs_name_to_address()

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

 



All 6 patches have been committed...

steved.

Chuck Lever wrote:
> The legacy version of nfs_name_to_address() returned an incorrect
> value for the size of the returned address.
> 
> Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
> ---
> 
>  utils/mount/network.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/utils/mount/network.c b/utils/mount/network.c
> index 92f75b4..b41388e 100644
> --- a/utils/mount/network.c
> +++ b/utils/mount/network.c
> @@ -291,7 +291,7 @@ int nfs_name_to_address(const char *hostname,
>  	}
>  
>  	memcpy(&sin->sin_addr, hp->h_addr, hp->h_length);
> -	*salen = hp->h_length;
> +	*salen = sizeof(struct sockaddr_in);
>  	return 1;
>  }
>  #endif	/* HAVE_DECL_AI_ADDRCONFIG */
> 
--
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