projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5be0ba2
)
krb5int_dk_string_to_key fails to set enctype
author
Ezra Peisach
<epeisach@mit.edu>
Fri, 8 Jan 2010 14:54:04 +0000
(14:54 +0000)
committer
Ezra Peisach
<epeisach@mit.edu>
Fri, 8 Jan 2010 14:54:04 +0000
(14:54 +0000)
Failure to set the enctype before invoking krb5_k_create_key results in
potential memory leak.
ticket: 6628
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23612
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/crypto/krb/dk/stringtokey.c
patch
|
blob
|
history
diff --git
a/src/lib/crypto/krb/dk/stringtokey.c
b/src/lib/crypto/krb/dk/stringtokey.c
index 9a491879dcb2f028db416cd8caa001f456825e4b..4c7206c2a20961398e0093f8658ff48b6df797bf 100644
(file)
--- a/
src/lib/crypto/krb/dk/stringtokey.c
+++ b/
src/lib/crypto/krb/dk/stringtokey.c
@@
-72,6
+72,7
@@
krb5int_dk_string_to_key(const struct krb5_keytypes *ktp,
indata.data = (char *) foldstring;
foldkeyblock.length = keylength;
foldkeyblock.contents = foldkeydata;
+ foldkeyblock.enctype = ktp->etype;
ret = enc->make_key(&indata, &foldkeyblock);
if (ret != 0)