From 580b48bfbc9c120eaef8de2191fa3b84f93c42ac Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 10 Dec 2002 17:24:27 +0000 Subject: [PATCH] fix for 32k packets that are really 8 git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@282 423420c4-83ab-492f-b58f-81f9feb106b5 --- rdp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rdp.c b/rdp.c index 491c7f9..9abef59 100644 --- a/rdp.c +++ b/rdp.c @@ -79,6 +79,13 @@ rdp_recv(uint8 * type) } in_uint16_le(rdp_s, length); + /* 32k packets are really 8, keepalive fix */ + if (length == 0x8000) + { + next_packet += 8; + *type = 0; + return rdp_s; + } in_uint16_le(rdp_s, pdu_type); in_uint8s(rdp_s, 2); /* userid */ *type = pdu_type & 0xf; @@ -712,6 +719,9 @@ rdp_main_loop(void) process_data_pdu(s); break; + case 0: + break; + default: unimpl("PDU %d\n", type); }