libxrdp: channels, respect xrdp.ini channel blocking also for data

coming in from chansrv
This commit is contained in:
speidy 2017-01-06 08:22:43 +02:00
parent 58d8cb0fd2
commit a82d412754
1 changed files with 5 additions and 2 deletions

View File

@ -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;