From 29c87ef830c2563c7b7dbcc0287b2e673dc6e1db Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Dec 2009 15:15:41 +1100 Subject: s4-heimdal: fixed a use-after-free heimdal bug This caused samba4kinit to segfault on some systems --- source4/heimdal/lib/krb5/init_creds_pw.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/heimdal/lib/krb5/init_creds_pw.c') diff --git a/source4/heimdal/lib/krb5/init_creds_pw.c b/source4/heimdal/lib/krb5/init_creds_pw.c index 5363d533e7..b615f5340a 100644 --- a/source4/heimdal/lib/krb5/init_creds_pw.c +++ b/source4/heimdal/lib/krb5/init_creds_pw.c @@ -1463,6 +1463,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) -- cgit