aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2020-08-19 11:49:29 -0400
committerGreg Hudson <ghudson@mit.edu>2020-11-03 11:56:27 -0500
commitdde8a92e44a879c326a6f13cef590460eb7b7fac (patch)
tree4fad900c3eff07f072faa90a9db2c7368abb6d7c
parent3de8f9b15f82239478a5370238eb8d682b4ff241 (diff)
downloadkrb5-dde8a92e44a879c326a6f13cef590460eb7b7fac.zip
krb5-dde8a92e44a879c326a6f13cef590460eb7b7fac.tar.gz
krb5-dde8a92e44a879c326a6f13cef590460eb7b7fac.tar.bz2
Suppress Leash error popup on MSLSA renew failure
Attempting to renew the MSLSA cache can commonly fail with KRB5_CC_NOTFOUND due to LSA policy. Do not display an error popup in this case. Also fix a logic error in the existing suppressions. (cherry picked from commit bfd407703a938573610af3f17aad4d5ebad615fd) ticket: 8939 version_fixed: 1.18.3
-rw-r--r--src/windows/leashdll/krb5routines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows/leashdll/krb5routines.c b/src/windows/leashdll/krb5routines.c
index ff4f360..587f044 100644
--- a/src/windows/leashdll/krb5routines.c
+++ b/src/windows/leashdll/krb5routines.c
@@ -121,8 +121,8 @@ LeashKRB5_renew(void)
code = pkrb5_get_renewed_creds(ctx, &my_creds, me, cc, NULL);
pkrb5_cc_set_flags(ctx, cc, KRB5_TC_NOTICKET);
if (code) {
- if ( code != KRB5KDC_ERR_ETYPE_NOSUPP ||
- code != KRB5_KDC_UNREACH)
+ if (code != KRB5KDC_ERR_ETYPE_NOSUPP && code != KRB5_KDC_UNREACH &&
+ code != KRB5_CC_NOTFOUND)
Leash_krb5_error(code, "krb5_get_renewed_creds()", 0, &ctx, &cc);
goto cleanup;
}