From: Chuck Lever Date: Wed, 4 Mar 2009 21:26:48 +0000 (-0500) Subject: The legacy version of nfs_name_to_address() returned an incorrect X-Git-Tag: nfs-utils-1-1-5~13 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=20618b27acf6ff52f2654740ebf32516eb1ab1e0 The legacy version of nfs_name_to_address() returned an incorrect value for the size of the returned address. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- 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 */