Merge pull request #1722 from nfedera/fix-2014-03-05-01

libfreerdp-core/mcs: fixed protocol error+segfault
This commit is contained in:
Marc-André Moreau 2014-03-05 10:58:58 -05:00
commit 963ed75501

View File

@ -850,7 +850,7 @@ BOOL mcs_send_attach_user_confirm(rdpMcs* mcs)
s = Stream_New(NULL, length); s = Stream_New(NULL, length);
settings = mcs->transport->settings; 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); mcs_write_domain_mcspdu_header(s, DomainMCSPDU_AttachUserConfirm, length, 2);