summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2015-07-11 01:17:32 -0700
committerJay Sorg <jay.sorg@gmail.com>2015-07-11 01:17:32 -0700
commit5d73cbd636b82a99e2d3c13e85f0b1981f17207a (patch)
tree728b122edd72e25ef9fe1f240443879d7420497c /xrdp
parent914b4acf39acae329dd32811b4a1d7e51b040c01 (diff)
downloadxrdp-proprietary-5d73cbd636b82a99e2d3c13e85f0b1981f17207a.tar.gz
xrdp-proprietary-5d73cbd636b82a99e2d3c13e85f0b1981f17207a.zip
set the source for chansrv
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp_mm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index a2e7446c..2af2e86d 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -466,6 +466,7 @@ xrdp_mm_setup_mod1(struct xrdp_mm *self)
self->mod->server_paint_rect_bpp = server_paint_rect_bpp;
self->mod->server_composite = server_composite;
self->mod->server_paint_rects = server_paint_rects;
+ self->mod->si = (tintptr) &(self->wm->session->si);
}
}
@@ -1116,15 +1117,16 @@ xrdp_mm_connect_chansrv(struct xrdp_mm *self, char *ip, char *port)
{
/* unix socket */
self->chan_trans = trans_create(TRANS_MODE_UNIX, 8192, 8192);
- self->chan_trans->is_term = g_is_term;
}
else
{
/* tcp */
self->chan_trans = trans_create(TRANS_MODE_TCP, 8192, 8192);
- self->chan_trans->is_term = g_is_term;
}
+ self->chan_trans->is_term = g_is_term;
+ self->chan_trans->si = &(self->wm->session->si);
+ self->chan_trans->my_source = XRDP_SOURCE_CHANSRV;
self->chan_trans->trans_data_in = xrdp_mm_chan_data_in;
self->chan_trans->header_size = 8;
self->chan_trans->callback_data = self;