svn rev #21787: trunk/src/lib/crypto/keyhash_provider/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Jan 23 13:19:20 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=21787
Commit By: ghudson
Log Message:
Initialize ds.magic in k5_md5_hmac_hash, to avoid harmlessly copying
around its uninitialized value in krb5_hmac.



Changed Files:
U   trunk/src/lib/crypto/keyhash_provider/md5_hmac.c
Modified: trunk/src/lib/crypto/keyhash_provider/md5_hmac.c
===================================================================
--- trunk/src/lib/crypto/keyhash_provider/md5_hmac.c	2009-01-23 18:04:08 UTC (rev 21786)
+++ trunk/src/lib/crypto/keyhash_provider/md5_hmac.c	2009-01-23 18:19:19 UTC (rev 21787)
@@ -54,6 +54,7 @@
   krb5_MD5Update(&ctx, (unsigned char *)input->data, input->length);
   krb5_MD5Final(&ctx);
 
+  ds.magic = KV5M_DATA;
   ds.length = 16;
   ds.data = (char *)ctx.digest;
 




More information about the cvs-krb5 mailing list