diff options
author | pfg <pfg@FreeBSD.org> | 2012-09-24 03:14:17 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2012-09-24 03:14:17 +0000 |
commit | c2b29c9319f156dccee19691cf564833580643ae (patch) | |
tree | fb26e6a922cf02e8c7819d08b26d55eec7342de0 /lib/libc/rpc | |
parent | 236cc73ab5f44b7de14d993f61821f86700fb6f6 (diff) | |
download | FreeBSD-src-c2b29c9319f156dccee19691cf564833580643ae.zip FreeBSD-src-c2b29c9319f156dccee19691cf564833580643ae.tar.gz |
Partial revert of r239963:
The following change caused rpc.lockd to exit after startup:
____
libtirpc: be sure to free cl_netid and cl_tp
When creating a client with clnt_tli_create, it uses strdup to copy
strings for these fields if nconf is passed in. clnt_dg_destroy frees
these strings already. Make sure clnt_vc_destroy frees them in the
same way.
____
MFC after: 3 days
Reported by: David Wolfskill
Tested by: David Wolfskill
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/clnt_vc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c index 881f84d..07eff46 100644 --- a/lib/libc/rpc/clnt_vc.c +++ b/lib/libc/rpc/clnt_vc.c @@ -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); |