From 8d037693bbd9a952677679a3cb2f4156eab18111 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 30 Jan 2007 11:22:45 +0000 Subject: [PATCH] The fix for the command line race conditions broke the ability to cancel and restart the Obtain New Credentials dialog ticket: 5414 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19124 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/identity/ui/credfuncs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/windows/identity/ui/credfuncs.c b/src/windows/identity/ui/credfuncs.c index 470af4f26..e70b8526e 100644 --- a/src/windows/identity/ui/credfuncs.c +++ b/src/windows/identity/ui/credfuncs.c @@ -367,7 +367,7 @@ kmsg_cred_completion(kmq_message *m) /* all is done. */ { khui_new_creds * nc; - khm_boolean continue_cmdline = FALSE; + khm_boolean continue_cmdline = TRUE; nc = (khui_new_creds *) m->vparam; @@ -380,6 +380,7 @@ kmsg_cred_completion(kmq_message *m) */ khm_cred_end_dialog(nc); + } else if (nc->subtype == KMSG_CRED_RENEW_CREDS) { /* if this is a renewal that was triggered while we @@ -390,8 +391,8 @@ kmsg_cred_completion(kmq_message *m) LONG renewals; renewals = InterlockedDecrement(&khm_startup.pending_renewals); - if (renewals == 0) { - continue_cmdline = TRUE; + if (renewals != 0) { + continue_cmdline = FALSE; } } } -- 2.26.2