From: Theodore Tso Date: Fri, 18 Nov 1994 22:24:44 +0000 (+0000) Subject: Fix to return correct error code, instead of always returning X-Git-Tag: krb5-1.0-beta5~952 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc7ed1a0d49f646fedd231b4bcb06d6f1e6879df;p=krb5.git Fix to return correct error code, instead of always returning KRB5_CC_NOMEM. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4697 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/file/ChangeLog b/src/lib/krb5/ccache/file/ChangeLog index e66909f9b..52cd41eda 100644 --- a/src/lib/krb5/ccache/file/ChangeLog +++ b/src/lib/krb5/ccache/file/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 18 17:22:51 1994 Theodore Y. Ts'o (tytso@dcl) + + * fcc_read.c (krb5_fcc_read_principal): Fix to return correct + error code, instead of always returning KRB5_CC_NOMEM. + Wed Nov 16 23:31:49 1994 Theodore Y. Ts'o (tytso@dcl) * fcc-proto.h, fcc.h, fcc_maybe.c (krb5_fcc_open_file), fcc_nseq.c diff --git a/src/lib/krb5/ccache/file/fcc_read.c b/src/lib/krb5/ccache/file/fcc_read.c index 298442c4a..7a91d6a0f 100644 --- a/src/lib/krb5/ccache/file/fcc_read.c +++ b/src/lib/krb5/ccache/file/fcc_read.c @@ -138,7 +138,7 @@ krb5_fcc_read_principal(id, princ) free(krb5_princ_component(tmpprinc, i)->data); free((char *)tmpprinc->data); free((char *)tmpprinc); - return KRB5_CC_NOMEM; + return kret; } krb5_error_code