From: Theodore Tso Date: Fri, 12 Apr 1996 00:12:58 +0000 (+0000) Subject: Return GSS_S_CRED_UNAVAIL on if krb5_cc_set_flags() returns an error, X-Git-Tag: krb5-1.0-beta6~221 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=236b37bab8ecfdb74191aabd8b75e2dda2971749;p=krb5.git 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7794 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 4f881caa9..c1cd92292 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,10 @@ +Thu Apr 11 18:53:09 1996 Theodore Y. Ts'o + + * 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 * init_sec_context.c (krb5_gss_init_sec_context): If make_ap_req() diff --git a/src/lib/gssapi/krb5/acquire_cred.c b/src/lib/gssapi/krb5/acquire_cred.c index 5c1082b5e..526e6dddb 100644 --- a/src/lib/gssapi/krb5/acquire_cred.c +++ b/src/lib/gssapi/krb5/acquire_cred.c @@ -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 */