diff options
author | kevlo <kevlo@FreeBSD.org> | 2013-03-01 15:45:57 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2013-03-01 15:45:57 +0000 |
commit | cf931ec7e19af6e1f43e78b5497e62f79bcff29d (patch) | |
tree | 1012845529e9b34876c034836ce2570bef951cc2 | |
parent | e653c470f763b4dff0b51050c92e379b1ff3f646 (diff) | |
download | FreeBSD-src-cf931ec7e19af6e1f43e78b5497e62f79bcff29d.zip FreeBSD-src-cf931ec7e19af6e1f43e78b5497e62f79bcff29d.tar.gz |
Assign the len field of the netbuf structure to the current length of
a sockaddr.
Obtained from: NetBSD
-rw-r--r-- | lib/libc/rpc/clnt_vc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c index 881f84d..53e393e 100644 --- a/lib/libc/rpc/clnt_vc.c +++ b/lib/libc/rpc/clnt_vc.c @@ -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; /* |