From dc2c826edd7983205b792c6cfdfdb8d02d09f60a Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Mon, 9 Apr 2018 15:04:52 +0200 Subject: [PATCH] Fix checking of krb in encrypt public key echo. In commit 0e1a073384ddd1382f6a0619177cf0b601ad973c there was a mistake - originally code said different then kerberos. Because of that NLA authentication of server side didn't work for me. --- libfreerdp/core/nla.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index 2c0f141d8..0f1eb1f8d 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -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);