summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2017-01-06 07:59:49 +0200
committerspeidy <speidy@gmail.com>2017-01-06 07:59:49 +0200
commit94cdbdcee64ffbd480ed6ded973d1e3927f82f75 (patch)
tree97fd81110d83aeac178114212b63bf529de100b2 /libxrdp
parente83a7c1fef5610b20118c2d2fac8d34b8ed7d08c (diff)
downloadxrdp-proprietary-94cdbdcee64ffbd480ed6ded973d1e3927f82f75.tar.gz
xrdp-proprietary-94cdbdcee64ffbd480ed6ded973d1e3927f82f75.zip
libxrdp: change channel_code into a meaningful name
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_rdp.c4
-rw-r--r--libxrdp/xrdp_sec.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index 219c0260..914b6277 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -105,8 +105,8 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info)
}
else if (g_strcasecmp(item, "allow_channels") == 0)
{
- client_info->channel_code = g_text2bool(value);
- if (client_info->channel_code == 0)
+ client_info->channels_allowed = g_text2bool(value);
+ if (client_info->channels_allowed == 0)
{
log_message(LOG_LEVEL_DEBUG,"Info - All channels are disabled");
}
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c
index 06813d25..2197b3b9 100644
--- a/libxrdp/xrdp_sec.c
+++ b/libxrdp/xrdp_sec.c
@@ -1829,12 +1829,12 @@ xrdp_sec_process_mcs_data_channels(struct xrdp_sec *self, struct stream *s)
client_info = &(self->rdp_layer->client_info);
- DEBUG(("processing channels, channel_code is %d", client_info->channel_code));
+ DEBUG(("processing channels, channels_allowed is %d", client_info->channels_allowed));
/* this is an option set in xrdp.ini */
- if (client_info->channel_code != 1) /* are channels on? */
+ if (client_info->channels_allowed != 1) /* are channels on? */
{
- g_writeln("Processing channel data from client - The channel is off");
+ g_writeln("xrdp_sec_process_mcs_data_channels: all channels are disabled by configuration");
return 0;
}