summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/chansrv.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-10-04 22:55:06 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-10-04 22:55:06 -0700
commit5e271a02ac73a3d1d5542dcfd1b0b09e62005ebd (patch)
tree697d74860b30f7084abc6b20cd85f1cb7daa09ee /sesman/chansrv/chansrv.c
parent5b0eaa4a9b828da75563238c245061284ef09a73 (diff)
downloadxrdp-proprietary-5e271a02ac73a3d1d5542dcfd1b0b09e62005ebd.tar.gz
xrdp-proprietary-5e271a02ac73a3d1d5542dcfd1b0b09e62005ebd.zip
chansrv: work on file copy / paste
Diffstat (limited to 'sesman/chansrv/chansrv.c')
-rw-r--r--sesman/chansrv/chansrv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index 392d6eff..c2729a4f 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -328,6 +328,9 @@ process_message_channel_setup(struct stream *s)
LOGM((LOG_LEVEL_DEBUG, "process_message_channel_setup: chan name '%s' "
"id %d flags %8.8x", ci->name, ci->id, ci->flags));
+ g_writeln("process_message_channel_setup: chan name '%s' "
+ "id %d flags %8.8x", ci->name, ci->id, ci->flags);
+
if (g_strcasecmp(ci->name, "cliprdr") == 0)
{
g_cliprdr_index = g_num_chan_items;
@@ -385,7 +388,7 @@ process_message_channel_setup(struct stream *s)
if (g_drdynvc_index >= 0)
{
- memset(&g_dvc_channels[0], 0, sizeof(g_dvc_channels));
+ g_memset(&g_dvc_channels[0], 0, sizeof(g_dvc_channels));
drdynvc_init();
}
@@ -719,7 +722,7 @@ my_api_trans_conn_in(struct trans *trans, struct trans *new_trans)
{
/* exceeded MAX_DVC_CHANNELS */
LOG(0, ("my_api_trans_conn_in: MAX_DVC_CHANNELS reached; giving up!"))
- free(ad);
+ g_free(ad);
trans_delete(new_trans);
return 1;
}