summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/cc_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/ccache/cc_file.c')
-rw-r--r--src/lib/krb5/ccache/cc_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c
index 62061497a..134cbfbb3 100644
--- a/src/lib/krb5/ccache/cc_file.c
+++ b/src/lib/krb5/ccache/cc_file.c
@@ -1503,7 +1503,9 @@ static krb5_error_code dereference(krb5_context context, krb5_fcc_data *data)
free(data->filename);
zap(data->buf, sizeof(data->buf));
if (data->file >= 0) {
- k5_mutex_lock(&data->lock);
+ kerr = k5_mutex_lock(&data->lock);
+ if (kerr)
+ return kerr;
krb5_fcc_close_file(context, data);
k5_mutex_unlock(&data->lock);
}