svn rev #22259: branches/krb5-1-7/src/lib/krb5/ccache/
tlyu@MIT.EDU
tlyu at MIT.EDU
Wed Apr 15 17:00:24 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22259
Commit By: tlyu
Log Message:
ticket: 6469
subject: fcc_generate_new destroys locked mutex on error
tags: pullup
target_version: 1.7
version_fixed: 1.7
pull up r22200 from trunk
------------------------------------------------------------------------
r22200 | ghudson | 2009-04-13 15:29:14 -0400 (Mon, 13 Apr 2009) | 3 lines
Changed paths:
M /trunk/src/lib/krb5/ccache/cc_file.c
krb5_fcc_generate_new was destroying a locked mutex in the err_out
label, which is used for I/O failures. Unlock the mutex first.
Changed Files:
U branches/krb5-1-7/src/lib/krb5/ccache/cc_file.c
Modified: branches/krb5-1-7/src/lib/krb5/ccache/cc_file.c
===================================================================
--- branches/krb5-1-7/src/lib/krb5/ccache/cc_file.c 2009-04-15 20:07:55 UTC (rev 22258)
+++ branches/krb5-1-7/src/lib/krb5/ccache/cc_file.c 2009-04-15 21:00:24 UTC (rev 22259)
@@ -2129,6 +2129,7 @@
err_out:
k5_cc_mutex_unlock(context, &krb5int_cc_file_mutex);
+ k5_cc_mutex_unlock(context, &data->lock);
k5_cc_mutex_destroy(&data->lock);
free(data->filename);
free(data);
More information about the cvs-krb5
mailing list