secur32: Don't allocate a context handle in AcceptSecurityContext if new and passed in context are the same.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
33e275a1d0
commit
4467fd6d23
|
@ -399,7 +399,8 @@ SECURITY_STATUS WINAPI AcceptSecurityContext(
|
|||
ret = package->provider->fnTableW.AcceptSecurityContext(
|
||||
cred, phContext ? &myCtxt : NULL, pInput, fContextReq,
|
||||
TargetDataRep, &myCtxt, pOutput, pfContextAttr, ptsExpiry);
|
||||
if (ret == SEC_E_OK || ret == SEC_I_CONTINUE_NEEDED)
|
||||
if ((ret == SEC_E_OK || ret == SEC_I_CONTINUE_NEEDED) &&
|
||||
phNewContext && phNewContext != phContext)
|
||||
{
|
||||
SECURITY_STATUS ret2;
|
||||
ret2 = SECUR32_makeSecHandle(phNewContext, package, &myCtxt);
|
||||
|
|
Loading…
Reference in New Issue