]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Suppress Leash error popup on MSLSA renew failure
authorGreg Hudson <ghudson@mit.edu>
Wed, 19 Aug 2020 15:49:29 +0000 (11:49 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 3 Nov 2020 16:56:29 +0000 (11:56 -0500)
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.17.2

src/windows/leashdll/krb5routines.c

index ff4f360f63cb47a0fe24b9679c378e2dab7c4576..587f044bda608ea9a42757103426f73a16f62673 100644 (file)
@@ -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;
     }