From 377bfeb227d6b4828c377bfd8b11d540f3b347d7 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 23 Nov 2017 16:18:44 +0100 Subject: [PATCH] Fix #3378: 31 static channels are supported. --- libfreerdp/core/client.h | 2 +- libfreerdp/core/gcc.c | 2 +- winpr/include/winpr/wtsapi.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libfreerdp/core/client.h b/libfreerdp/core/client.h index 3f1e1f409..e98531488 100644 --- a/libfreerdp/core/client.h +++ b/libfreerdp/core/client.h @@ -35,7 +35,7 @@ #include #include -#define CHANNEL_MAX_COUNT 30 +#define CHANNEL_MAX_COUNT 31 struct rdp_channel_client_data { diff --git a/libfreerdp/core/gcc.c b/libfreerdp/core/gcc.c index 3dac9c0e7..410a974a4 100644 --- a/libfreerdp/core/gcc.c +++ b/libfreerdp/core/gcc.c @@ -1526,7 +1526,7 @@ BOOL gcc_read_client_network_data(wStream* s, rdpMcs* mcs, UINT16 blockLength) if (blockLength < 4 + mcs->channelCount * 12) return FALSE; - if (mcs->channelCount > 16) + if (mcs->channelCount > CHANNEL_MAX_COUNT) return FALSE; /* channelDefArray */ diff --git a/winpr/include/winpr/wtsapi.h b/winpr/include/winpr/wtsapi.h index eb546be31..dcdf8d381 100644 --- a/winpr/include/winpr/wtsapi.h +++ b/winpr/include/winpr/wtsapi.h @@ -66,7 +66,7 @@ #define CHANNEL_OPTION_SHOW_PROTOCOL 0x00200000 #define CHANNEL_OPTION_REMOTE_CONTROL_PERSISTENT 0x00100000 -#define CHANNEL_MAX_COUNT 30 +#define CHANNEL_MAX_COUNT 31 #define CHANNEL_NAME_LEN 7 typedef struct tagCHANNEL_DEF