[channel] Fixed broken length check

The length check for channel chunk data was wrong. Not only was it
checked twice, the second check expected the whole fragmented data
to be available.
This commit is contained in:
Armin Novak 2022-11-03 20:55:08 +01:00 committed by David Fort
parent 7d67adbc54
commit 901753b527

View File

@ -142,8 +142,6 @@ BOOL freerdp_channel_process(freerdp* instance, wStream* s, UINT16 channelId, si
chunkLength);
return FALSE;
}
if (!Stream_CheckAndLogRequiredLength(TAG, s, length))
return FALSE;
IFCALLRET(instance->ReceiveChannelData, rc, instance, channelId, Stream_Pointer(s), chunkLength,
flags, length);