X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdp5.c;h=e8fd59749ab8a86278be0b35c3bbc59792427d03;hp=1612643de0bf497390679563be8eb812b39e80fe;hb=a089728102db1602cb96b01049aee0222f077444;hpb=55a546ab6b5970438e6cca1a962ec4e7dd669d11 diff --git a/rdp5.c b/rdp5.c index 1612643..e8fd597 100644 --- a/rdp5.c +++ b/rdp5.c @@ -55,7 +55,7 @@ rdp5_send(STREAM s, BOOL encryption) out_uint8(s, datalen & 0xff); if (encryption) { - datalen -= 8; + datalen -= 11; sec_sign(s->p, 8, sec_sign_key, rc4_key_len, s->p + 8, datalen); sec_encrypt(s->p + 8, datalen); @@ -119,7 +119,7 @@ rdp5_process(STREAM s, BOOL encryption) break; } default: - printf("Unimplemented RDP5 opcode %d (len=%u)\n", type, length); + printf("Unimplemented RDP5 opcode %d\n", type); return; } }