From e74e9887eb9d833b2831854785ed55b7169d7be3 Mon Sep 17 00:00:00 2001 From: Norbert Federa Date: Wed, 5 Mar 2014 15:47:23 +0100 Subject: [PATCH] libfreerdp-core/mcs: fixed protocol error+segfault wrong channelcount pointer was referenced in the server mcs attach user confirm pdu --- libfreerdp/core/mcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/mcs.c b/libfreerdp/core/mcs.c index e6a914c3e..092a95802 100644 --- a/libfreerdp/core/mcs.c +++ b/libfreerdp/core/mcs.c @@ -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);