windows-logon-20050323
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 23 Mar 2005 22:31:13 +0000 (22:31 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 23 Mar 2005 22:31:13 +0000 (22:31 +0000)
Fix initialization error when getting domain parameters

src/WINNT/afsd/afslogon.c

index a16a45f..0e9788e 100644 (file)
@@ -325,6 +325,8 @@ GetDomainLogonOptions( PLUID lpLogonId, char * username, char * domain, LogonOpt
     char computerName[MAX_COMPUTERNAME_LENGTH + 1];
     char *effDomain;
 
+    memset(opt, 0, sizeof(LogonOptions_t));
+
     DebugEvent("In GetDomainLogonOptions for user [%s] in domain [%s]", username, domain);
     /* If the domain is the same as the Netbios computer name, we use the LOCALHOST domain name*/
     opt->flags = LOGON_FLAG_REMOTE;