[core,fastpath] fix too verbose log

for fastpath_recv_update_synchronize only skip the available bytes as
older servers tend to send short packets. This avoids (too) verbose
logging.
This commit is contained in:
akallabeth 2023-02-07 12:57:21 +01:00 committed by akallabeth
parent 2eda0aa2ea
commit db98f16e5b

View File

@ -334,8 +334,9 @@ static BOOL fastpath_recv_update_synchronize(rdpFastPath* fastpath, wStream* s)
WINPR_ASSERT(fastpath);
WINPR_ASSERT(s);
Stream_SafeSeek(s, 2); /* size (2 bytes), MUST be set to zero */
return TRUE;
const size_t len = Stream_GetRemainingLength(s);
const size_t skip = MIN(2, len);
return Stream_SafeSeek(s, skip); /* size (2 bytes), MUST be set to zero */
}
static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, wStream* s)