diff options
author | Stefan Metzmacher <metze@samba.org> | 2020-04-03 15:27:45 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2021-12-09 13:22:36 +0000 |
commit | ce293eb861b2fc6c7a88cf67664c91735bf49d44 (patch) | |
tree | aa6d77ad0089ed08c9fa43a15eed7779f2b216d7 /auth | |
parent | 102ad9ee6a037e2aa6296d0dfbf17f3e4175a581 (diff) | |
download | samba-ce293eb861b2fc6c7a88cf67664c91735bf49d44.tar.gz |
auth/credentials: Handle ENOENT when obtaining ccache lifetime
The new Heimdal may return ENOENT instead of KRB5_CC_END.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/credentials/credentials_krb5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c index d2e7a76a69e..b4db5fc8fbd 100644 --- a/auth/credentials/credentials_krb5.c +++ b/auth/credentials/credentials_krb5.c @@ -686,7 +686,7 @@ _PUBLIC_ int cli_credentials_get_named_ccache(struct cli_credentials *cred, bool expired = false; ret = smb_krb5_cc_get_lifetime(cred->ccache->smb_krb5_context->krb5_context, cred->ccache->ccache, &lifetime); - if (ret == KRB5_CC_END) { + if (ret == KRB5_CC_END || ret == ENOENT) { /* If we have a particular ccache set, without * an initial ticket, then assume there is a * good reason */ |