diff options
Diffstat (limited to 'xrdp/xrdp_mcs.c')
-rw-r--r-- | xrdp/xrdp_mcs.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xrdp/xrdp_mcs.c b/xrdp/xrdp_mcs.c index 035e5497..e47a36f3 100644 --- a/xrdp/xrdp_mcs.c +++ b/xrdp/xrdp_mcs.c @@ -23,7 +23,9 @@ #include "xrdp.h" /*****************************************************************************/ -struct xrdp_mcs* xrdp_mcs_create(struct xrdp_sec* owner) +struct xrdp_mcs* xrdp_mcs_create(struct xrdp_sec* owner, int sck, + struct stream* client_mcs_data, + struct stream* server_mcs_data) { struct xrdp_mcs* self; @@ -31,9 +33,9 @@ struct xrdp_mcs* xrdp_mcs_create(struct xrdp_sec* owner) self->sec_layer = owner; self->userid = 1; self->chanid = 1001; - self->client_mcs_data = &owner->client_mcs_data; - self->server_mcs_data = &owner->server_mcs_data; - self->iso_layer = xrdp_iso_create(self); + self->client_mcs_data = client_mcs_data; + self->server_mcs_data = server_mcs_data; + self->iso_layer = xrdp_iso_create(self, sck); return self; } |