Merge pull request #2279 from bmiklautz/channel_fail

core: fix problem with data for unknown channel
This commit is contained in:
Norbert Federa 2014-12-16 16:44:42 +01:00
commit ec3be62ff2

View File

@ -242,8 +242,6 @@ int freerdp_channels_data(freerdp* instance, UINT16 channelId, BYTE* data, int d
for (index = 0; index < mcs->channelCount; index++)
{
channel = &mcs->channels[index];
if (mcs->channels[index].ChannelId == channelId)
{
channel = &mcs->channels[index];