]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r300387,r300388,r300389:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Jun 2016 14:18:47 +0000 (14:18 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Jun 2016 14:18:47 +0000 (14:18 +0000)
commit932a6b1586c3e1bce4de30ce5b504c330a2e189a
tree8271f9eff3aacbd3923acf073bf9f86d9563a08d
parent8d79554fd20601299b3d29ddc221c29ff06f8c3c
MFC r300387,r300388,r300389:

r300387:

getnetid(..): consistently fclose fd at the end of the function

This mutes a false positive with cppcheck, but also helps eliminate future
potential issues with this variable

r300388:

Call endnetconfig on nc_handle sooner to avoid leaking nc_handle if tmpnconf
was NULL

This would theoretically happen if the netconfig protocol family and protocol
semantics were never matched.

CID: 978179

r300389:

nis_rpcent: don't leak resultbuf from yp_first(..)/yp_next(..)

If the buffer couldn't be adequately resized to accomodate an additional "\n",
it would leak resultbuf by breaking from the loop early

CID: 1016702

git-svn-id: svn://svn.freebsd.org/base/stable/10@301629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/rpc/getrpcent.c
lib/libc/rpc/netnamer.c
lib/libc/rpc/rpcb_clnt.c