From 95df1a47d1e40eb9d007853c99826432e7ac4016 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 31 Aug 2009 20:06:27 -0400 Subject: [PATCH] Windows: integrated logon 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 Reviewed-by: Asanka Herath Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/afslogon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 43363a36a..0554eed6d 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -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 ); -- 2.39.5