Fix double free of AS key
authorSam Hartman <hartmans@mit.edu>
Thu, 13 Feb 2003 20:09:21 +0000 (20:09 +0000)
committerSam Hartman <hartmans@mit.edu>
Thu, 13 Feb 2003 20:09:21 +0000 (20:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15188 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/gic_keytab.c

index fa7b7c8b5afd83a687c0b03d2442cf08717c472e..bc158827590340dbf40d95d696c7201214c9568d 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-13  Sam Hartman  <hartmans@mit.edu>
+
+       * 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  <hartmans@mit.edu>
 
        * rd_cred.c (krb5_rd_cred): Free creds using krb5_free_tgt_creds
index f49fb8aa6e30c837b8081fd9af9b613bfb9e61a6..a7cb773a097706335f081370e3780563629b2ade 100644 (file)
@@ -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;
     }