Assign the len field of the netbuf structure to the current length of

a sockaddr.

Obtained from:	NetBSD
This commit is contained in:
kevlo 2013-03-01 15:45:57 +00:00
parent e653c470f7
commit cf931ec7e1

View File

@ -260,7 +260,7 @@ clnt_vc_create(fd, raddr, prog, vers, sendsz, recvsz)
if (ct->ct_addr.buf == NULL)
goto err;
memcpy(ct->ct_addr.buf, raddr->buf, raddr->len);
ct->ct_addr.len = raddr->maxlen;
ct->ct_addr.len = raddr->len;
ct->ct_addr.maxlen = raddr->maxlen;
/*