Assign the len field of the netbuf structure to the current length of
a sockaddr. Obtained from: NetBSD
This commit is contained in:
parent
e653c470f7
commit
cf931ec7e1
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user