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

a sockaddr.

Obtained from:	NetBSD
This commit is contained in:
Kevin Lo 2013-03-01 15:45:57 +00:00
parent bb508e7732
commit 5ee7403731
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247550

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;
/*