svn rev #25239: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue Sep 27 11:05:44 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25239
Commit By: ghudson
Log Message:
Fix an error case in encrypted timestamp preauth.
If krb5_encrypt_helper returns an error, it's not the caller's
responsibility to free enc_data.ciphertext, and in one case (if
krb5_c_encrypt_length returns an error) it won't have been
initialized.
Changed Files:
U trunk/src/lib/krb5/krb/preauth2.c
Modified: trunk/src/lib/krb5/krb/preauth2.c
===================================================================
--- trunk/src/lib/krb5/krb/preauth2.c 2011-09-26 20:23:15 UTC (rev 25238)
+++ trunk/src/lib/krb5/krb/preauth2.c 2011-09-27 15:05:44 UTC (rev 25239)
@@ -678,10 +678,8 @@
krb5_free_data(context, tmp);
- if (ret) {
- free(enc_data.ciphertext.data);
+ if (ret)
return(ret);
- }
ret = encode_krb5_enc_data(&enc_data, &tmp);
More information about the cvs-krb5
mailing list