From: John Kohl Date: Wed, 2 May 1990 19:05:44 +0000 (+0000) Subject: missed a return value check (should be ret) X-Git-Tag: krb5-1.0-alpha2~712 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9bd8e48f3c2471c6b102e02df9ecf16bbe01b8a3;p=krb5.git missed a return value check (should be ret) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@684 dc483132-0cff-0310-8789-dd5450dbe970 --- 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; }