svn rev #23622: trunk/src/lib/crypto/builtin/

epeisach@MIT.EDU epeisach at MIT.EDU
Sat Jan 9 11:02:14 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23622
Commit By: epeisach
Log Message:
subject: krb5int_pbkdf2_hmac_sha1 fails to set enctype on keyblock
ticket: 6630
tags: pullup

krb5int_pbkdf2_hmac_sha1 fails to set enctype on a termporary keyblock
- resulting in valgrind picking up on a conditional branch w/ unset
value. Initialize value.





Changed Files:
U   trunk/src/lib/crypto/builtin/pbkdf2.c
Modified: trunk/src/lib/crypto/builtin/pbkdf2.c
===================================================================
--- trunk/src/lib/crypto/builtin/pbkdf2.c	2010-01-08 23:43:18 UTC (rev 23621)
+++ trunk/src/lib/crypto/builtin/pbkdf2.c	2010-01-09 16:02:13 UTC (rev 23622)
@@ -259,6 +259,7 @@
         keyblock.length = pass->length;
         keyblock.contents = (krb5_octet *) pass->data;
     }
+    keyblock.enctype = ENCTYPE_NULL;
 
     err = krb5_k_create_key(NULL, &keyblock, &key);
     if (err)




More information about the cvs-krb5 mailing list