summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2009-03-04 17:07:55 -0500
committerSteve Dickson <steved@redhat.com>2009-03-04 17:07:55 -0500
commitc8e40bc4a1a9f8e7c91ca909d553172b7a684a18 (patch)
treee6b0a8d20b3717e576be2f9b363f9366ce574844 /support
parent882cf0a91b9df297b5ebe8c79a40478d3de4ae05 (diff)
downloadnfs-utils-c8e40bc4a1a9f8e7c91ca909d553172b7a684a18.tar.gz
nfs-utils-c8e40bc4a1a9f8e7c91ca909d553172b7a684a18.tar.xz
nfs-utils-c8e40bc4a1a9f8e7c91ca909d553172b7a684a18.zip
Have sizeof using the correct value in nfs_getlocalport()
Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support')
-rw-r--r--support/nfs/getport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/getport.c b/support/nfs/getport.c
index bea3c98..023c79a 100644
--- a/support/nfs/getport.c
+++ b/support/nfs/getport.c
@@ -833,7 +833,7 @@ unsigned short nfs_getlocalport(const rpcprot_t program,
{
struct sockaddr_storage address;
struct sockaddr *lb_addr = (struct sockaddr *)&address;
- socklen_t lb_len = sizeof(lb_addr);
+ socklen_t lb_len = sizeof(*lb_addr);
unsigned short port = 0;
#ifdef NFS_GP_LOCAL