uninitialize-20040412
authorJeffrey Altman <jaltman@mit.edu>
Tue, 13 Apr 2004 04:47:50 +0000 (04:47 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 13 Apr 2004 04:47:50 +0000 (04:47 +0000)
Fix uninitialized use of ltto

src/WINNT/afsd/afsd_init.c

index 2d5f3cd..30b905c 100644 (file)
@@ -328,7 +328,7 @@ int afsd_InitCM(char **reasonP)
                ltt = 1;
                afsi_log("Logoff token transfer on by default");
        }
-        smb_LogoffTokenTransfer = ltt;
+    smb_LogoffTokenTransfer = ltt;
 
        if (ltt) {
                dummyLen = sizeof(ltto);
@@ -341,8 +341,10 @@ int afsd_InitCM(char **reasonP)
                        ltto = 10;
                        afsi_log("Default logoff token transfer timeout 10 seconds");
                }
-       }
-        smb_LogoffTransferTimeout = ltto;
+       } else {
+        ltto = 0;
+    }
+    smb_LogoffTransferTimeout = ltto;
 
        dummyLen = sizeof(cm_rootVolumeName);
        code = RegQueryValueEx(parmKey, "RootVolume", NULL, NULL,