Fix checking of krb in encrypt public key echo.
authorMariusz Zaborski <oshogbo@vexillium.org>
Mon, 9 Apr 2018 13:04:52 +0000 (15:04 +0200)
committerMariusz Zaborski <oshogbo@vexillium.org>
Mon, 9 Apr 2018 13:09:38 +0000 (15:09 +0200)
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

index 2c0f141..0f1eb1f 100644 (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);