]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299491:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 14:40:41 +0000 (14:40 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 14:40:41 +0000 (14:40 +0000)
commit5c267d54d73e45d7773f26deb6676524faf24527
tree6ac54a5a03d789fb770f1aba561931a017dd5ab9
parent4d56abe1898d26e0b90aec70185e85a13f7c1bae
MFC r299491:
r299491 (by cem):

route6d(8): Fix potential double-free

In the case that the subsequent sysctl(3) call failed, 'buf' could be free(3)ed
repeatedly.  It isn't clear to me that that case is possible, but be clear and
do the right thing in case it is.

CID: 272537

git-svn-id: svn://svn.freebsd.org/base/stable/10@301789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/route6d/route6d.c