From d1ee3cce98660af66ebd23ad3739a2c5ff90653e Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 17 Apr 1991 14:31:07 +0000 Subject: [PATCH] add some better error code passing git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1992 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/rcache/rc_dfl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/rcache/rc_dfl.c b/src/lib/krb5/rcache/rc_dfl.c index de91d4db1..c7e895ace 100644 --- a/src/lib/krb5/rcache/rc_dfl.c +++ b/src/lib/krb5/rcache/rc_dfl.c @@ -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)) -- 2.26.2