diff options
author | speidy <speidy@gmail.com> | 2017-01-06 08:22:43 +0200 |
---|---|---|
committer | speidy <speidy@gmail.com> | 2017-01-06 08:32:30 +0200 |
commit | a82d41275454fdad916c4599054fcab9ebda5123 (patch) | |
tree | da681c524226f57a71c2e08bc9fd61a758443ad3 | |
parent | 58d8cb0fd2fb74a778d0bae4934c93a03203b2ff (diff) | |
download | xrdp-proprietary-a82d41275454fdad916c4599054fcab9ebda5123.tar.gz xrdp-proprietary-a82d41275454fdad916c4599054fcab9ebda5123.zip |
libxrdp: channels, respect xrdp.ini channel blocking also for data
coming in from chansrv
-rw-r--r-- | xrdp/xrdp_mm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c index ddbc89a8..d023305b 100644 --- a/xrdp/xrdp_mm.c +++ b/xrdp/xrdp_mm.c @@ -740,8 +740,11 @@ xrdp_mm_trans_process_channel_data(struct xrdp_mm *self, struct trans *trans) if (rv == 0) { - rv = libxrdp_send_to_channel(self->wm->session, chan_id, s->p, size, total_size, - chan_flags); + if (is_channel_allowed(self->wm, chan_id)) + { + rv = libxrdp_send_to_channel(self->wm->session, chan_id, s->p, size, total_size, + chan_flags); + } } return rv; |