]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r293715:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 19 Jan 2016 01:30:22 +0000 (01:30 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 19 Jan 2016 01:30:22 +0000 (01:30 +0000)
commit67471879e05cfece44ea06eb367a936949794052
treef444b2fb24439745d8d9f59f90944f702d4d9943
parent3a489b3acb5cacadef5db19be96f41e66a2db430
MFC r293715:

Fix a mismerge from NetBSD in r162194 with `xdr_rpcb_entry_list_ptr(..)`

This fixes the potential NULL pointer dereference properly, and also fixes
memory leaks encountered in the process of iterating through `*rp`.

Found by: Valgrind
Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>

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