libfreerdp-core/gcc: store channelId returned by server MCS connect response.

According to [MS-RDPBCGR] 2.2.1.4.4, channelIdArray is a variable-length array of MCS channel IDs, and each channelId is allocated corresponding in position to the channels requested in the Client Network Data structure.
This commit is contained in:
Vic Lee 2011-08-02 17:24:51 +08:00
parent b577605dbc
commit 18b947082a
1 changed files with 1 additions and 6 deletions

View File

@ -480,12 +480,7 @@ void gcc_read_server_network_data(STREAM* s, rdpSettings *settings)
for (i = 0; i < channelCount; i++)
{
stream_read_uint16(s, channelId); /* channelId */
if (channelId != settings->channels[i].chan_id)
{
printf("channel %d is %d, but %d was expected\n",
i, channelId, settings->channels[i].chan_id);
}
settings->channels[i].chan_id = channelId;
}
if (channelCount % 2 == 1)