diff options
author | Ben Greear <greearb@candelatech.com> | 2009-03-04 17:07:55 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-03-04 17:07:55 -0500 |
commit | c8e40bc4a1a9f8e7c91ca909d553172b7a684a18 (patch) | |
tree | e6b0a8d20b3717e576be2f9b363f9366ce574844 /support | |
parent | 882cf0a91b9df297b5ebe8c79a40478d3de4ae05 (diff) | |
download | nfs-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.c | 2 |
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 |