svn commit: r240980 - in stable/8: lib/libc/rpc sys/rpc

Pedro F. Giffuni pfg at FreeBSD.org
Thu Sep 27 04:06:21 UTC 2012


Author: pfg
Date: Thu Sep 27 04:06:20 2012
New Revision: 240980
URL: http://svn.freebsd.org/changeset/base/240980

Log:
  MFC	240880:
  
  Revert a change from Bull's NFSv4 libtirpc implementation:
  
  libtirpc: be sure to free cl_netid and cl_tp
  
  This change is causing rpc.lockd to exit after startup.
  
  Reported by:	David Wolfskill

Modified:
  stable/8/lib/libc/rpc/clnt_vc.c
  stable/8/sys/rpc/clnt_vc.c
Directory Properties:
  stable/8/lib/libc/rpc/   (props changed)
  stable/8/sys/rpc/   (props changed)

Modified: stable/8/lib/libc/rpc/clnt_vc.c
==============================================================================
--- stable/8/lib/libc/rpc/clnt_vc.c	Thu Sep 27 04:05:39 2012	(r240979)
+++ stable/8/lib/libc/rpc/clnt_vc.c	Thu Sep 27 04:06:20 2012	(r240980)
@@ -672,10 +672,6 @@ clnt_vc_destroy(cl)
 	if (ct->ct_addr.buf)
 		free(ct->ct_addr.buf);
 	mem_free(ct, sizeof(struct ct_data));
-	if (cl->cl_netid && cl->cl_netid[0])
-		mem_free(cl->cl_netid, strlen(cl->cl_netid) +1);
-	if (cl->cl_tp && cl->cl_tp[0])
-		mem_free(cl->cl_tp, strlen(cl->cl_tp) +1);
 	mem_free(cl, sizeof(CLIENT));
 	mutex_unlock(&clnt_fd_lock);
 	thr_sigsetmask(SIG_SETMASK, &(mask), NULL);

Modified: stable/8/sys/rpc/clnt_vc.c
==============================================================================
--- stable/8/sys/rpc/clnt_vc.c	Thu Sep 27 04:05:39 2012	(r240979)
+++ stable/8/sys/rpc/clnt_vc.c	Thu Sep 27 04:06:20 2012	(r240980)
@@ -836,10 +836,6 @@ clnt_vc_destroy(CLIENT *cl)
 		soclose(so);
 	}
 	mem_free(ct, sizeof(struct ct_data));
-	if (cl->cl_netid && cl->cl_netid[0])
-		mem_free(cl->cl_netid, strlen(cl->cl_netid) +1);
-	if (cl->cl_tp && cl->cl_tp[0])
-		mem_free(cl->cl_tp, strlen(cl->cl_tp) +1);
 	mem_free(cl, sizeof(CLIENT));
 }
 


More information about the svn-src-all mailing list