uninitialize-20040412

Fix uninitialized use of ltto
This commit is contained in:
Jeffrey Altman 2004-04-13 04:47:50 +00:00 committed by Jeffrey Altman
parent 9dc32a5a18
commit 4a0729240a

View 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,