]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r241143:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 16 Oct 2012 01:37:17 +0000 (01:37 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 16 Oct 2012 01:37:17 +0000 (01:37 +0000)
commitbbdee0b95ea5d02f8c2b78b02887cb3476ec4afd
tree58e97b0b800695e9a6df9f0cc026d35d0d9c4004
parentda92fc99058e66f76a0c03610e47ad8dc9899359
MFC r241143:

rpc: 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.

Tested by: David Wolfskill
Obtained from: Bull GNU/Linux NFSv4 Project (libtirpc)

git-svn-id: svn://svn.freebsd.org/base/stable/9@241601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/rpc/clnt_vc.c
sys/rpc/clnt_vc.c