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
This commit is contained in:
Jay Sorg 2002-12-10 17:24:27 +00:00
parent 1174e1a405
commit 580b48bfbc

10
rdp.c
View File

@ -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);
}