The fix for the command line race conditions
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 30 Jan 2007 11:22:45 +0000 (11:22 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 30 Jan 2007 11:22:45 +0000 (11:22 +0000)
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

index 470af4f266c09ad9fa7b9f61339890efcbaa89a3..e70b8526ea512e6ca91da63fb5f8aee5ae244a9d 100644 (file)
@@ -367,7 +367,7 @@ kmsg_cred_completion(kmq_message *m)
         /* all is done. */\r
         {\r
             khui_new_creds * nc;\r
-            khm_boolean continue_cmdline = FALSE;\r
+            khm_boolean continue_cmdline = TRUE;\r
 \r
             nc = (khui_new_creds *) m->vparam;\r
 \r
@@ -380,6 +380,7 @@ kmsg_cred_completion(kmq_message *m)
                 */\r
 \r
                 khm_cred_end_dialog(nc);\r
+\r
             } else if (nc->subtype == KMSG_CRED_RENEW_CREDS) {\r
 \r
                 /* if this is a renewal that was triggered while we\r
@@ -390,8 +391,8 @@ kmsg_cred_completion(kmq_message *m)
                     LONG renewals;\r
                     renewals = InterlockedDecrement(&khm_startup.pending_renewals);\r
 \r
-                    if (renewals == 0) {\r
-                        continue_cmdline = TRUE;\r
+                    if (renewals != 0) {\r
+                        continue_cmdline = FALSE;\r
                     }\r
                 }\r
             }\r