summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-06-01 15:20:45 +0000
committeriedowse <iedowse@FreeBSD.org>2001-06-01 15:20:45 +0000
commite1e34d59e0508cd55b20f59a9671fadd3f070092 (patch)
tree0295fd7855de92e469cfbf453d1688947c5afce6
parent5143a6d9aafc7b5ce9fccc9449781955a196da2c (diff)
downloadFreeBSD-src-e1e34d59e0508cd55b20f59a9671fadd3f070092.zip
FreeBSD-src-e1e34d59e0508cd55b20f59a9671fadd3f070092.tar.gz
Copy the sockaddr from the netbuf data area, not from the netbuf
data pointer. This bug has been here since the ti-rpc import; it apparently broke the clnt_control CLGET_SVC_ADDR options. PR: misc/27813 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
-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 38c9ceb..6cdaad1 100644
--- a/lib/libc/rpc/clnt_vc.c
+++ b/lib/libc/rpc/clnt_vc.c
@@ -257,7 +257,7 @@ clnt_vc_create(fd, raddr, prog, vers, sendsz, recvsz)
ct->ct_addr.buf = malloc(raddr->maxlen);
if (ct->ct_addr.buf == NULL)
goto err;
- memcpy(ct->ct_addr.buf, &raddr->buf, raddr->len);
+ memcpy(ct->ct_addr.buf, raddr->buf, raddr->len);
ct->ct_addr.len = raddr->maxlen;
ct->ct_addr.maxlen = raddr->maxlen;
OpenPOWER on IntegriCloud