summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2013-03-01 15:45:57 +0000
committerkevlo <kevlo@FreeBSD.org>2013-03-01 15:45:57 +0000
commitcf931ec7e19af6e1f43e78b5497e62f79bcff29d (patch)
tree1012845529e9b34876c034836ce2570bef951cc2 /lib/libc/rpc
parente653c470f763b4dff0b51050c92e379b1ff3f646 (diff)
downloadFreeBSD-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
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/clnt_vc.c2
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;
/*
OpenPOWER on IntegriCloud