diff options
| author | Idan Freiberg <speidy@gmail.com> | 2017-01-15 08:55:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-15 08:55:00 +0200 |
| commit | a64e1789c561b6376ff643e43578410c1927b49e (patch) | |
| tree | e8c4478741535cfd0417dd87df61f736f8ffaee6 /xrdp/xrdp_mm.c | |
| parent | 9f5656933b057bf5c47ae46716130226f8352901 (diff) | |
| parent | 0a5bc44a0bd8100be3592bc155cf4b28ccb9cd17 (diff) | |
| download | xrdp-proprietary-a64e1789c561b6376ff643e43578410c1927b49e.tar.gz xrdp-proprietary-a64e1789c561b6376ff643e43578410c1927b49e.zip | |
Merge pull request #615 from speidy/channels_fixes
Channels improvements
Diffstat (limited to 'xrdp/xrdp_mm.c')
| -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 df859c0a..6cabe582 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; |
