From e1e34d59e0508cd55b20f59a9671fadd3f070092 Mon Sep 17 00:00:00 2001 From: iedowse Date: Fri, 1 Jun 2001 15:20:45 +0000 Subject: 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 --- lib/libc/rpc/clnt_vc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') 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; -- cgit v1.1