From a5dfa964bfd9a75bd2a0fe689d1215b20189d43e Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Thu, 13 Feb 2003 20:09:21 +0000 Subject: [PATCH] Fix double free of AS key git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15188 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/gic_keytab.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index fa7b7c8b5..bc1588275 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2003-02-13 Sam Hartman + + * gic_keytab.c (krb5_get_as_key_keytab): Nathan Neulinger points + out that the AS key is double freed; fix. + 2003-02-11 Sam Hartman * rd_cred.c (krb5_rd_cred): Free creds using krb5_free_tgt_creds diff --git a/src/lib/krb5/krb/gic_keytab.c b/src/lib/krb5/krb/gic_keytab.c index f49fb8aa6..a7cb773a0 100644 --- a/src/lib/krb5/krb/gic_keytab.c +++ b/src/lib/krb5/krb/gic_keytab.c @@ -24,7 +24,7 @@ krb5_get_as_key_keytab( if (as_key->enctype == etype) return(0); - krb5_free_keyblock(context, as_key); + krb5_free_keyblock_contents(context, as_key); as_key->length = 0; } -- 2.26.2