summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/ccache/file/fcc_store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/file/fcc_store.c b/src/lib/krb5/ccache/file/fcc_store.c
index 6562b543b..af5d3cf38 100644
--- a/src/lib/krb5/ccache/file/fcc_store.c
+++ b/src/lib/krb5/ccache/file/fcc_store.c
@@ -43,7 +43,7 @@ krb5_fcc_store(id, creds)
if (OPENCLOSE(id)) {
ret = open(((krb5_fcc_data *) id->data)->filename,
O_RDWR | O_APPEND, 0);
- if (((krb5_fcc_data *) id->data)->fd < 0)
+ if (ret < 0)
return errno;
((krb5_fcc_data *) id->data)->fd = ret;
}