diff options
author | Andreas Schneider <asn@samba.org> | 2016-12-22 17:01:35 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-12-24 17:16:06 +0100 |
commit | 630867196b9e9d1096443f979b32957c5a0d2be2 (patch) | |
tree | cc025862bba71d8d8b7ba2898857c52e351684bb /auth/credentials | |
parent | fd98174443543ee3a150a10b056b45c4663bd7f7 (diff) | |
download | samba-630867196b9e9d1096443f979b32957c5a0d2be2.tar.gz |
auth/credentials: Add missing error code check for MIT Kerberos
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'auth/credentials')
-rw-r--r-- | auth/credentials/credentials_krb5.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c index ca62e30ef73..e974df9a0ba 100644 --- a/auth/credentials/credentials_krb5.c +++ b/auth/credentials/credentials_krb5.c @@ -581,7 +581,11 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred, maj_stat = gss_krb5_import_cred(&min_stat, ccache->ccache, NULL, NULL, &gcc->creds); - if ((maj_stat == GSS_S_FAILURE) && (min_stat == (OM_uint32)KRB5_CC_END || min_stat == (OM_uint32) KRB5_CC_NOTFOUND)) { + if ((maj_stat == GSS_S_FAILURE) && + (min_stat == (OM_uint32)KRB5_CC_END || + min_stat == (OM_uint32)KRB5_CC_NOTFOUND || + min_stat == (OM_uint32)KRB5_FCC_NOFILE)) + { /* This CCACHE is no good. Ensure we don't use it again */ cli_credentials_unconditionally_invalidate_ccache(cred); |