Commit 4467fd6d authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

secur32: Don't allocate a context handle in AcceptSecurityContext if new and…

secur32: Don't allocate a context handle in AcceptSecurityContext if new and passed in context are the same. Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 33e275a1
...@@ -399,7 +399,8 @@ SECURITY_STATUS WINAPI AcceptSecurityContext( ...@@ -399,7 +399,8 @@ SECURITY_STATUS WINAPI AcceptSecurityContext(
ret = package->provider->fnTableW.AcceptSecurityContext( ret = package->provider->fnTableW.AcceptSecurityContext(
cred, phContext ? &myCtxt : NULL, pInput, fContextReq, cred, phContext ? &myCtxt : NULL, pInput, fContextReq,
TargetDataRep, &myCtxt, pOutput, pfContextAttr, ptsExpiry); 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; SECURITY_STATUS ret2;
ret2 = SECUR32_makeSecHandle(phNewContext, package, &myCtxt); ret2 = SECUR32_makeSecHandle(phNewContext, package, &myCtxt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment