Merge pull request #4264 from cedrozor/upstream-master

Fixed NLA for Negotiate and NTLM authentication
This commit is contained in:
Martin Fleisz 2017-11-21 17:25:25 +01:00 committed by GitHub
commit 59d1f61e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1026,8 +1026,8 @@ SECURITY_STATUS nla_encrypt_public_key_echo(rdpNla* nla)
Buffers[0].pvBuffer = nla->pubKeyAuth.pvBuffer;
CopyMemory(Buffers[0].pvBuffer, nla->PublicKey.pvBuffer, Buffers[0].cbBuffer);
}
else if ((strcmp(nla->packageName, NEGO_SSP_NAME) != 0) ||
(strcmp(nla->packageName, NTLM_SSP_NAME) != 0))
else if ((strcmp(nla->packageName, NEGO_SSP_NAME) == 0) ||
(strcmp(nla->packageName, NTLM_SSP_NAME) == 0))
{
Buffers[0].BufferType = SECBUFFER_TOKEN; /* Signature */
Buffers[0].cbBuffer = nla->ContextSizes.cbSecurityTrailer;