svn rev #22953: trunk/src/lib/crypto/krb/keyhash_provider/

ghudson@MIT.EDU ghudson at MIT.EDU
Tue Oct 20 09:49:48 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22953
Commit By: ghudson
Log Message:
In k5_hmac_md5_hash_iov, initialize keyblock.contents so that we don't
free it prior to initialization if krb5_hmac fails.



Changed Files:
U   trunk/src/lib/crypto/krb/keyhash_provider/hmac_md5.c
Modified: trunk/src/lib/crypto/krb/keyhash_provider/hmac_md5.c
===================================================================
--- trunk/src/lib/crypto/krb/keyhash_provider/hmac_md5.c	2009-10-20 13:47:40 UTC (rev 22952)
+++ trunk/src/lib/crypto/krb/keyhash_provider/hmac_md5.c	2009-10-20 13:49:48 UTC (rev 22953)
@@ -103,6 +103,8 @@
   char t[4];
   size_t i;
 
+  keyblock.contents = NULL;
+
   ds.length = key->keyblock.length;
   ds.data = malloc(ds.length);
   if (ds.data == NULL)




More information about the cvs-krb5 mailing list