Merge pull request #4549 from oshogbo/krb

Fix checking of krb in encrypt public key echo.
This commit is contained in:
Bernhard Miklautz 2018-04-09 16:26:18 +02:00 committed by GitHub
commit e818dd5679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1090,7 +1090,7 @@ SECURITY_STATUS nla_encrypt_public_key_echo(rdpNla* nla)
CopyMemory(Buffers[1].pvBuffer, nla->PublicKey.pvBuffer, Buffers[1].cbBuffer);
}
if (krb && nla->server)
if (!krb && nla->server)
{
/* server echos the public key +1 */
ap_integer_increment_le((BYTE*) Buffers[1].pvBuffer, Buffers[1].cbBuffer);