]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299495:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 14:48:10 +0000 (14:48 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 14:48:10 +0000 (14:48 +0000)
commit4ff3d0e74b4674478fb86019f78f931fa9c8567e
tree81192425a5b0dbbb77be54877b93697f84cc3f24
parentcaceaebff41c5ff70b85af601300aeb14082f209
MFC r299495:
r299495 (by cem):

libkrb5: Fix potential double-free

If krb5_make_principal fails, tmp_creds.server may remain a pointer to freed
memory and then be double-freed.  After freeing it the first time, initialize
it to NULL, which causes subsequent krb5_free_principal calls to do the right
thing.

CID: 1273430

git-svn-id: svn://svn.freebsd.org/base/stable/10@301792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
crypto/heimdal/lib/krb5/get_cred.c