HomeFreeBSD

MFC r299495:

Description

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

Details

Provenance
ngieAuthored on
Parents
rS301791: MFC r299494:
Branches
Unknown
Tags
Unknown