xrdp: skip connecting to chansrv when no channels enabled

This commit is contained in:
Koichiro IWAO 2019-08-22 15:11:31 +09:00
parent 1e4b03eb3c
commit f37faca65b
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB
1 changed files with 8 additions and 0 deletions

View File

@ -1430,6 +1430,14 @@ xrdp_mm_connect_chansrv(struct xrdp_mm *self, const char *ip, const char *port)
self->usechansrv = 1;
if (self->wm->client_info->channels_allowed == 0)
{
log_message(LOG_LEVEL_DEBUG, "%s: "
"skip connecting to chansrv because all channels are disabled",
__func__);
return 0;
}
/* connect channel redir */
if ((g_strcmp(ip, "127.0.0.1") == 0) || (ip[0] == 0))
{