kfw leash: fix bad data in get tickets dialog when -autoinit specified
authorTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:47:14 +0000 (20:47 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:47:14 +0000 (20:47 +0000)
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25583 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/leash/Leash.cpp

index 1f12e913e3921f674873ebfe43b14e6568b65229..0c68faf5eda0d71867169437c602a23d295be651 100644 (file)
@@ -241,7 +241,7 @@ BOOL CLeashApp::InitInstance()
                 }
                 ReleaseMutex(ticketinfo.lockObj);
 
-                               ldi.size = sizeof(ldi);
+                               ldi.size = LSH_DLGINFO_EX_V1_SZ;
                                ldi.dlgtype = DLGTYPE_PASSWD;
                 ldi.title = "Initialize Ticket";
                 ldi.username = username;
@@ -1466,7 +1466,7 @@ CLeashApp::ObtainTicketsViaUserIfNeeded(HWND hWnd)
             ReleaseMutex(m_tgsReqMutex);
 #endif
             LSH_DLGINFO_EX ldi;
-            ldi.size = sizeof(ldi);
+            ldi.size = LSH_DLGINFO_EX_V1_SZ;
             ldi.dlgtype = DLGTYPE_PASSWD;
             ldi.title = "Initialize Ticket";
             ldi.username = NULL;
@@ -1499,7 +1499,7 @@ CLeashApp::ObtainTicketsViaUserIfNeeded(HWND hWnd)
             ReleaseMutex(m_tgsReqMutex);
 #endif
             LSH_DLGINFO_EX ldi;
-            ldi.size = sizeof(ldi);
+            ldi.size = LSH_DLGINFO_EX_V1_SZ;
             ldi.dlgtype = DLGTYPE_PASSWD;
             ldi.title = "Initialize Ticket";
             ldi.username = NULL;
@@ -1525,7 +1525,7 @@ CLeashApp::ObtainTicketsViaUserIfNeeded(HWND hWnd)
             ReleaseMutex(m_tgsReqMutex);
 #endif
             LSH_DLGINFO_EX ldi;
-            ldi.size = sizeof(ldi);
+            ldi.size = LSH_DLGINFO_EX_V1_SZ;
             ldi.dlgtype = DLGTYPE_PASSWD;
             ldi.title = "Initialize Ticket";
             ldi.username = NULL;
@@ -1623,7 +1623,7 @@ CLeashApp::InitWorker(void * hWnd)
 #endif
     if ( ProbeKDC() ) {
         LSH_DLGINFO_EX ldi;
-        ldi.size = sizeof(ldi);
+        ldi.size = LSH_DLGINFO_EX_V1_SZ;
         ldi.dlgtype = DLGTYPE_PASSWD;
         ldi.title = "Initialize Ticket";
         ldi.username = NULL;