Merge pull request #3275 from nfedera/fix-server-establish-keys-typo

core: fix broken rdp security (server side)
This commit is contained in:
akallabeth 2016-04-08 15:28:40 +02:00
commit 45ab97904f
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@ BOOL rdp_server_establish_keys(rdpRdp* rdp, wStream* s)
rdp->rc4_decrypt_key = winpr_RC4_New(rdp->decrypt_key, rdp->rc4_key_len);
rdp->rc4_encrypt_key = winpr_RC4_New(rdp->encrypt_key, rdp->rc4_key_len);
if (!rdp->rc4_decrypt_key || rdp->rc4_encrypt_key)
if (!rdp->rc4_decrypt_key || !rdp->rc4_encrypt_key)
goto end;
ret = TRUE;