summaryrefslogtreecommitdiffstats
path: root/src/windows
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-01-30 11:22:45 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-01-30 11:22:45 +0000
commit8d037693bbd9a952677679a3cb2f4156eab18111 (patch)
tree5e99687f1d5d9295a86a24812065434bcbd40927 /src/windows
parent8280042aae4cbe62a557da76dffff85a20744e67 (diff)
downloadkrb5-8d037693bbd9a952677679a3cb2f4156eab18111.tar.gz
krb5-8d037693bbd9a952677679a3cb2f4156eab18111.tar.xz
krb5-8d037693bbd9a952677679a3cb2f4156eab18111.zip
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
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/identity/ui/credfuncs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/windows/identity/ui/credfuncs.c b/src/windows/identity/ui/credfuncs.c
index 470af4f266..e70b8526ea 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;
}
}
}