missed a return value check (should be ret)
authorJohn Kohl <jtkohl@mit.edu>
Wed, 2 May 1990 19:05:44 +0000 (19:05 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 2 May 1990 19:05:44 +0000 (19:05 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@684 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/file/fcc_store.c

index 6562b543b2784c6db0948c9d15afa6fc7098db65..af5d3cf3834c8702378700454bd879fa29ba87b7 100644 (file)
@@ -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;
      }