+2004-08-15 Ken Raeburn <raeburn@mit.edu>
+
+ * cc_file.c (dereference): Lock mutex around call to
+ krb5_fcc_close_file.
+
2004-08-12 Ken Raeburn <raeburn@mit.edu>
* cc_file.c (krb5_fcc_close_file): Change first argument to be an
*fccsp = (*fccsp)->next;
k5_mutex_unlock(&krb5int_cc_file_mutex);
free(data->filename);
- if (data->file >= 0)
+ if (data->file >= 0) {
+ k5_mutex_lock(&data->lock);
krb5_fcc_close_file(context, data);
+ k5_mutex_unlock(&data->lock);
+ }
k5_mutex_assert_unlocked(&data->lock);
k5_mutex_destroy(&data->lock);
free(data);