libfreerdp-core/mcs: fixed protocol error+segfault

wrong channelcount pointer was referenced in the server
mcs attach user confirm pdu
This commit is contained in:
Norbert Federa 2014-03-05 15:47:23 +01:00
parent 1d67de61c9
commit e74e9887eb

View File

@ -850,7 +850,7 @@ BOOL mcs_send_attach_user_confirm(rdpMcs* mcs)
s = Stream_New(NULL, length);
settings = mcs->transport->settings;
mcs->userId = MCS_GLOBAL_CHANNEL_ID + 1 + settings->ChannelCount;
mcs->userId = MCS_GLOBAL_CHANNEL_ID + 1 + mcs->channelCount;
mcs_write_domain_mcspdu_header(s, DomainMCSPDU_AttachUserConfirm, length, 2);