summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-04-13 19:29:14 +0000
committerGreg Hudson <ghudson@mit.edu>2009-04-13 19:29:14 +0000
commite934ce4fddd394bf3207139688a8dc9b969df2e7 (patch)
treed9b3eeed9c512ad09195a34d5642b10736b2f49f /src/lib
parent9231fa3d6d8cfc36f6f5df0ba791c5bb7cc11c60 (diff)
downloadkrb5-e934ce4fddd394bf3207139688a8dc9b969df2e7.tar.gz
krb5-e934ce4fddd394bf3207139688a8dc9b969df2e7.tar.xz
krb5-e934ce4fddd394bf3207139688a8dc9b969df2e7.zip
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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22200 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/cc_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c
index 9b7280b48..0494c3552 100644
--- a/src/lib/krb5/ccache/cc_file.c
+++ b/src/lib/krb5/ccache/cc_file.c
@@ -2129,6 +2129,7 @@ krb5_fcc_generate_new (krb5_context context, krb5_ccache *id)
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);