Fix #3378: 31 static channels are supported.

This commit is contained in:
Armin Novak 2017-11-23 16:18:44 +01:00
parent d982cf0e90
commit 377bfeb227
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@
#include <freerdp/client/drdynvc.h>
#include <freerdp/channels/channels.h>
#define CHANNEL_MAX_COUNT 30
#define CHANNEL_MAX_COUNT 31
struct rdp_channel_client_data
{

View File

@ -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 */

View File

@ -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