Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2013 15:45:58 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r247550 - head/lib/libc/rpc
Message-ID:  <201303011545.r21FjwtH092514@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Fri Mar  1 15:45:57 2013
New Revision: 247550
URL: http://svnweb.freebsd.org/changeset/base/247550

Log:
  Assign the len field of the netbuf structure to the current length of
  a sockaddr.
  
  Obtained from:	NetBSD

Modified:
  head/lib/libc/rpc/clnt_vc.c

Modified: head/lib/libc/rpc/clnt_vc.c
==============================================================================
--- head/lib/libc/rpc/clnt_vc.c	Fri Mar  1 15:09:23 2013	(r247549)
+++ head/lib/libc/rpc/clnt_vc.c	Fri Mar  1 15:45:57 2013	(r247550)
@@ -260,7 +260,7 @@ clnt_vc_create(fd, raddr, prog, vers, se
 	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;
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303011545.r21FjwtH092514>