mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
core/info: Assume compression level 0 when INFO_COMPRESSION not present
It's unlikely, that a client supports a higher compression level, when it did not advertise that level.
This commit is contained in:
committed by
akallabeth
parent
50c3559a43
commit
dec0f950d1
@@ -699,6 +699,10 @@ static BOOL rdp_read_info_packet(rdpRdp* rdp, wStream* s, UINT16 tpktlength)
|
||||
CompressionLevel = ((flags & 0x00001E00) >> 9);
|
||||
settings->CompressionLevel = CompressionLevel;
|
||||
}
|
||||
else
|
||||
{
|
||||
settings->CompressionLevel = 0;
|
||||
}
|
||||
|
||||
/* RDP 4 and 5 have smaller credential limits */
|
||||
if (settings->RdpVersion < RDP_VERSION_5_PLUS)
|
||||
|
||||
Reference in New Issue
Block a user