svn rev #23612: trunk/src/lib/crypto/krb/dk/
epeisach@MIT.EDU
epeisach at MIT.EDU
Fri Jan 8 09:54:04 EST 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23612
Commit By: epeisach
Log Message:
ticket: 6628
subject: krb5int_dk_string_to_key fails to set enctype
tags: pullup
Failure to set the enctype before invoking krb5_k_create_key results in
potential memory leak.
Changed Files:
U trunk/src/lib/crypto/krb/dk/stringtokey.c
Modified: trunk/src/lib/crypto/krb/dk/stringtokey.c
===================================================================
--- trunk/src/lib/crypto/krb/dk/stringtokey.c 2010-01-08 03:43:37 UTC (rev 23611)
+++ trunk/src/lib/crypto/krb/dk/stringtokey.c 2010-01-08 14:54:04 UTC (rev 23612)
@@ -72,6 +72,7 @@
indata.data = (char *) foldstring;
foldkeyblock.length = keylength;
foldkeyblock.contents = foldkeydata;
+ foldkeyblock.enctype = ktp->etype;
ret = enc->make_key(&indata, &foldkeyblock);
if (ret != 0)
More information about the cvs-krb5
mailing list