Author: pschweitzer
Date: Sat Oct 24 08:49:08 2015
New Revision: 69665
URL:
http://svn.reactos.org/svn/reactos?rev=69665&view=rev
Log:
[LSASRV]
Initialize pointers addresses before the first goto, to avoid uninit addresses handling
CID 1206997, 1206998
Modified:
trunk/reactos/dll/win32/lsasrv/authpackage.c
Modified: trunk/reactos/dll/win32/lsasrv/authpackage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/authpacka…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/authpackage.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/authpackage.c [iso-8859-1] Sat Oct 24 08:49:08 2015
@@ -1029,6 +1029,9 @@
for (i = 0; i < TokenInfo1->Groups->GroupCount; i++)
SidArray.Sids[i + 1].SidPointer = TokenInfo1->Groups->Groups[i].Sid;
+ BuiltinMembership.Element = NULL;
+ AccountMembership.Element = NULL;
+
Status = SamIConnect(NULL,
&ServerHandle,
SAM_SERVER_CONNECT | SAM_SERVER_LOOKUP_DOMAIN,
@@ -1059,7 +1062,6 @@
goto done;
}
- BuiltinMembership.Element = NULL;
Status = SamrGetAliasMembership(BuiltinDomainHandle,
&SidArray,
&BuiltinMembership);
@@ -1069,7 +1071,6 @@
goto done;
}
- AccountMembership.Element = NULL;
Status = SamrGetAliasMembership(AccountDomainHandle,
&SidArray,
&AccountMembership);