s4-heimdal: fixed a use-after-free heimdal bug
s4-heimdal: fixed a use-after-free heimdal bug This caused samba4kinit to segfault on some systems Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
c93cea7ea6
commit
a92eef4668
@@ -1541,6 +1541,7 @@ krb5_init_creds_set_keytab(krb5_context context,
|
||||
/* remove old list of etype */
|
||||
if (etypes)
|
||||
free(etypes);
|
||||
etypes = NULL;
|
||||
netypes = 0;
|
||||
kvno = entry.vno;
|
||||
} else if (entry.vno != kvno)
|
||||
|
Reference in New Issue
Block a user