mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
libfreerdp-core: fix server-side update encoding edge case
This commit is contained in:
@@ -517,6 +517,12 @@ static BOOL update_check_flush(rdpContext* context, int size)
|
||||
|
||||
s = update->us;
|
||||
|
||||
if (!update->us)
|
||||
{
|
||||
update->BeginPaint(context);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (Stream_GetPosition(s) + size + 256 >= settings->MultifragMaxRequestSize)
|
||||
{
|
||||
update_flush(context);
|
||||
|
||||
Reference in New Issue
Block a user