Don't break connection when receiving an invalid synchronize packet

This commit is contained in:
rdp.effort 2013-01-14 12:33:56 +01:00
parent 92b96ec98d
commit 2c9412bb1c

View File

@ -192,7 +192,10 @@ static BOOL fastpath_recv_update_common(rdpFastPath* fastpath, STREAM* s)
static BOOL fastpath_recv_update_synchronize(rdpFastPath* fastpath, STREAM* s)
{
return stream_skip(s, 2); /* size (2 bytes), MUST be set to zero */
/* server 2008 can send invalid synchronize packet with missing padding,
so don't return FALSE even if the packet is invalid */
stream_skip(s, 2); /* size (2 bytes), MUST be set to zero */
return TRUE;
}
static BOOL fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 size, STREAM* s)