Fixed #7821: Revert length check broken by #7796

This commit is contained in:
akallabeth 2022-04-23 09:52:56 +02:00 committed by akallabeth
parent aa6ca6aa40
commit d9ff38bcd7

View File

@ -134,7 +134,7 @@ BOOL freerdp_channel_process(freerdp* instance, wStream* s, UINT16 channelId, si
chunkLength);
return FALSE;
}
if (!Stream_CheckAndLogRequiredLength(TAG, s, length))
if (length < chunkLength)
{
WLog_ERR(TAG, "Expected %" PRIu32 " bytes, but have %" PRIdz, length, chunkLength);
return FALSE;