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:
Pascal Nowack
2023-04-28 07:23:27 +02:00
committed by akallabeth
parent 50c3559a43
commit dec0f950d1

View File

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