aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2019-03-19 11:15:26 -0400
committerGreg Hudson <ghudson@mit.edu>2019-03-29 14:53:34 -0400
commit0d822a48ce8b187961b61dab86612d919105ebdc (patch)
treee8b7d0222c6f77945d92a661cf4a3679e9a9ee17
parent867e387a3a68caad157c4ce102cccec0fd9fd94e (diff)
downloadkrb5-0d822a48ce8b187961b61dab86612d919105ebdc.zip
krb5-0d822a48ce8b187961b61dab86612d919105ebdc.tar.gz
krb5-0d822a48ce8b187961b61dab86612d919105ebdc.tar.bz2
Suppress krb5_cc_start_seq_get() popups in Leash
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. (cherry picked from commit 3208e88cae1c5b3c3f0477e64565764118df6316) ticket: 8790 version_fixed: 1.17.1
-rw-r--r--src/windows/leash/KrbListTickets.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/windows/leash/KrbListTickets.cpp b/src/windows/leash/KrbListTickets.cpp
index 5dd37b0..62bc55a 100644
--- a/src/windows/leash/KrbListTickets.cpp
+++ b/src/windows/leash/KrbListTickets.cpp
@@ -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)