Possible bug in nfs-utils source.

Ben Greear
2009-01-21T22:25:49Z

I'm working on adding support to bind to local addresses, and
I noticed this code in nfs/getport.c

I believe the sizeof should probably be sizeof(*lb_addr) ?

unsigned short nfs_getlocalport(const rpcprot_t program,
const rpcvers_t version,
const unsigned short protocol)
{
struct sockaddr_storage address;
struct sockaddr *lb_addr = (struct sockaddr *)&address;
socklen_t lb_len = sizeof(lb_addr);
unsigned short port = 0;