diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-08 15:15:41 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-08 15:16:13 +1100 |
commit | 29c87ef830c2563c7b7dbcc0287b2e673dc6e1db (patch) | |
tree | 2b6875666ee467b09a02bae11a71850d9ed573e0 | |
parent | cc9d4d51814054d91afeb17e62ded3087bc864ff (diff) | |
download | samba-29c87ef830c2563c7b7dbcc0287b2e673dc6e1db.tar.gz samba-29c87ef830c2563c7b7dbcc0287b2e673dc6e1db.tar.bz2 samba-29c87ef830c2563c7b7dbcc0287b2e673dc6e1db.zip |
s4-heimdal: fixed a use-after-free heimdal bug
This caused samba4kinit to segfault on some systems
-rw-r--r-- | source4/heimdal/lib/krb5/init_creds_pw.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |