]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Suppress krb5_cc_start_seq_get() popups in Leash 909/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 19 Mar 2019 15:15:26 +0000 (11:15 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 29 Mar 2019 15:36:50 +0000 (11:36 -0400)
Under some circumstances (perhaps related to a February Windows 10
update), Leash can get past the krb5_cc_get_principal() step when
processing an empty MSLSA ccache, and get a KRB5_CC_NOMATCH error from
krb5_cc_start_seq_get().  Do not display a modal error dialog if this
happens.

ticket: 8790
tags: pullup
target_version: 1.17-next

src/windows/leash/KrbListTickets.cpp

index 5dd37b05a4273d74316690265dc48cb647bcaea6..62bc55ad6766add012775a9cc33c87a2a7f5eb01 100644 (file)
@@ -222,7 +222,8 @@ do_ccache(krb5_context ctx,
     }
     code = pkrb5_cc_start_seq_get(ctx, cache, &cur);
     if (code) {
-        functionName = "krb5_cc_start_seq_get";
+        // MSLSA errors here if no TGT is found; suppress error message box
+        code = 0;
         goto cleanup;
     }
     if (*ticketInfoTail)