mirror of https://github.com/FreeRDP/FreeRDP
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:
parent
b577605dbc
commit
18b947082a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue