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:
Andrew Tridgell
2009-12-08 04:15:41 +11:00
committed by Love Hornquist Astrand
parent c93cea7ea6
commit a92eef4668

View File

@@ -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)