Return GSS_S_CRED_UNAVAIL on if krb5_cc_set_flags() returns an error,
authorTheodore Tso <tytso@mit.edu>
Fri, 12 Apr 1996 00:12:58 +0000 (00:12 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 12 Apr 1996 00:12:58 +0000 (00:12 +0000)
since that's the call that will return an error if the credentials
files doesn't exist.

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

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/acquire_cred.c

index 4f881caa9e8ee1be3b6e1fb00cb2e1ab82a1ec56..c1cd9229289d7d0c94eddf397709ccb545a766ec 100644 (file)
@@ -1,3 +1,10 @@
+Thu Apr 11 18:53:09 1996  Theodore Y. Ts'o  <tytso@dcl>
+
+       * acquire_cred.c (acquire_init_cred): Return GSS_S_CRED_UNAVAIL on
+               if krb5_cc_set_flags() returns an error, since that's the
+               call that will return an error if the credentials files
+               doesn't exist.
+
 Wed Apr  3 16:10:24 1996  Theodore Y. Ts'o  <tytso@dcl>
 
        * init_sec_context.c (krb5_gss_init_sec_context): If make_ap_req()
index 5c1082b5eb17c1d05cf713ea8ebffcb2f46a1285..526e6dddb712a40fe1aa809733803ce4224ac7e3 100644 (file)
@@ -150,7 +150,7 @@ acquire_init_cred(context, minor_status, desired_name, output_princ, cred)
    flags = 0;          /* turns off OPENCLOSE mode */
    if (code = krb5_cc_set_flags(context, ccache, flags)) {
       *minor_status = code;
-      return(GSS_S_FAILURE);
+      return(GSS_S_CRED_UNAVAIL);
    }
 
    /* get out the principal name and see if it matches */