add some better error code passing
authorJohn Kohl <jtkohl@mit.edu>
Wed, 17 Apr 1991 14:31:07 +0000 (14:31 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 17 Apr 1991 14:31:07 +0000 (14:31 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1992 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/rcache/rc_dfl.c

index de91d4db11a2790c78645d71a218547996d934f0..c7e895ace66920092b2fc282ce7b91a4770709b4 100644 (file)
@@ -203,11 +203,12 @@ krb5_rcache id;
 krb5_deltat lifespan;
 {
  struct dfl_data *t = (struct dfl_data *)id->data;
+ krb5_error_code retval;
 
  t->lifespan = lifespan;
 #ifndef NOIOSTUFF
- if (krb5_rc_io_creat(&t->d,&t->name))
-   return KRB5_RC_IO;
+ if (retval = krb5_rc_io_creat(&t->d,&t->name))
+   return retval;
  if (krb5_rc_io_write(&t->d,(krb5_pointer) &t->lifespan,sizeof(t->lifespan)))
    return KRB5_RC_IO;
 #endif
@@ -443,6 +444,7 @@ krb5_rcache id;
   {
    case KRB5_RC_MALLOC: return KRB5_RC_MALLOC;
    case KRB5_RC_IO: return KRB5_RC_IO;
+   case KRB5_RC_IO_PERM: return KRB5_RC_IO_PERM;
    default: ;
   }
  if (retval = krb5_rc_io_creat(&tmp,(char **) 0))