From: Ben Greear Date: Wed, 4 Mar 2009 22:07:55 +0000 (-0500) Subject: Have sizeof using the correct value in nfs_getlocalport() X-Git-Tag: nfs-utils-1-1-5~8 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c8e40bc4a1a9f8e7c91ca909d553172b7a684a18;p=nfs-utils.git Have sizeof using the correct value in nfs_getlocalport() Signed-off-by: Ben Greear Signed-off-by: Steve Dickson --- 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