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:
parent
1d67de61c9
commit
e74e9887eb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user