projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a812a0
)
krb5int_pbkdf2_hmac_sha1 fails to set enctype on keyblock
author
Ezra Peisach
<epeisach@mit.edu>
Sat, 9 Jan 2010 16:02:13 +0000
(16:02 +0000)
committer
Ezra Peisach
<epeisach@mit.edu>
Sat, 9 Jan 2010 16:02:13 +0000
(16:02 +0000)
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.
ticket: 6630
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23622
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/crypto/builtin/pbkdf2.c
patch
|
blob
|
history
diff --git
a/src/lib/crypto/builtin/pbkdf2.c
b/src/lib/crypto/builtin/pbkdf2.c
index 7ee07f0c5527abd1f0153d14f5492288aa08a6e8..31de329c0de78575655e24cba1e4a49eb45608f3 100644
(file)
--- a/
src/lib/crypto/builtin/pbkdf2.c
+++ b/
src/lib/crypto/builtin/pbkdf2.c
@@
-259,6
+259,7
@@
krb5int_pbkdf2_hmac_sha1(const krb5_data *out, unsigned long count,
keyblock.length = pass->length;
keyblock.contents = (krb5_octet *) pass->data;
}
+ keyblock.enctype = ENCTYPE_NULL;
err = krb5_k_create_key(NULL, &keyblock, &key);
if (err)