Windows: integrated logon
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 1 Sep 2009 00:06:27 +0000 (20:06 -0400)
committerJeffrey Altman <jaltman|account-1000011@unknown>
Tue, 1 Sep 2009 00:46:24 +0000 (17:46 -0700)
The previous fix prevented a null pointer dereference but
forgot to set 'effDomain' to the domain specified by the
caller if it exists and is not the local machine name.

LICENSE MIT

FIXES 125325

Reviewed-on: http://gerrit.openafs.org/390
Tested-by: Asanka Herath <asanka@secure-endpoints.com>
Reviewed-by: Asanka Herath <asanka@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>

src/WINNT/afsd/afslogon.c

index 43363a3..0554eed 100644 (file)
@@ -375,6 +375,8 @@ GetDomainLogonOptions( PLUID lpLogonId, char * username, char * domain, LogonOpt
                 opt->flags = LOGON_FLAG_LOCAL;
             }
         }
+        if (effDomain == NULL)
+            effDomain = domain;
     }
 
     rv = RegOpenKeyEx( HKEY_LOCAL_MACHINE, AFSREG_CLT_SVC_PARAM_SUBKEY, 0, KEY_READ, &hkParm );