From a92eef46683385e60d63c9ea556b8ead036822e4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Dec 2009 04:15:41 +1100 Subject: [PATCH] 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 --- lib/krb5/init_creds_pw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index c910fea13..eb3373494 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -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)