]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r301789:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 14:42:36 +0000 (14:42 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 14:42:36 +0000 (14:42 +0000)
commitd4a551ea0fa5adb5d9c0a64278ddec520bf5b7d9
treebd10cbab131faaff7bb1dae4c1a4700550f7b165
parent79b570c30aa8437008594bb009bc214cca3c450a
MFstable/10 r301789:

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/9@301790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/route6d/route6d.c