Fix to return correct error code, instead of always returning
authorTheodore Tso <tytso@mit.edu>
Fri, 18 Nov 1994 22:24:44 +0000 (22:24 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 18 Nov 1994 22:24:44 +0000 (22:24 +0000)
KRB5_CC_NOMEM.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4697 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/file/ChangeLog
src/lib/krb5/ccache/file/fcc_read.c

index e66909f9bf334b59a614894031ffbf0928dac17c..52cd41edaf7711c4186922446e3fb92f1b5ef181 100644 (file)
@@ -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
index 298442c4a3489fbbfbef47b77321d9fe99a13a08..7a91d6a0fb22d264dfeb9c7a14a9e4a3712a2404 100644 (file)
@@ -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