From 20618b27acf6ff52f2654740ebf32516eb1ab1e0 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Wed, 4 Mar 2009 16:26:48 -0500 Subject: [PATCH] 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 --- utils/mount/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.2