]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r301629:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Jun 2016 14:20:54 +0000 (14:20 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Jun 2016 14:20:54 +0000 (14:20 +0000)
commitc6a2e4b397d2dea6880cb8a7c336ecf5127e5e0b
tree95323651e1953574fb6541262cd85fa8c67b9b71
parent49a8c0aea7ef0cb4a98cd78232131babc59eef57
MFstable/10 r301629:

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/9@301630 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/rpc/getrpcent.c
lib/libc/rpc/netnamer.c
lib/libc/rpc/rpcb_clnt.c