krb5 commit: Don't try to free an uninitialized keyblock

Greg Hudson ghudson at MIT.EDU
Mon Oct 15 11:43:30 EDT 2012


https://github.com/krb5/krb5/commit/8c01d39e12032f5e74292f29763cf89ea4b9ed58
commit 8c01d39e12032f5e74292f29763cf89ea4b9ed58
Author: Nalin Dahyabhai <nalin at redhat.com>
Date:   Tue Oct 9 13:45:25 2012 -0400

    Don't try to free an uninitialized keyblock

 src/plugins/preauth/pkinit/pkinit_crypto_nss.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c
index 1aa5779..9a36df5 100644
--- a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c
+++ b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c
@@ -3775,8 +3775,6 @@ pkinit_octetstring_hkdf(krb5_context context,
         }
     }
 
-    krb5_free_keyblock_contents(context, krb5key);
-
     krb5key->contents = malloc(klength);
     if (krb5key->contents == NULL) {
         krb5key->length = 0;


More information about the cvs-krb5 mailing list