Merge pull request #1393 from metalefty/chansrv-channels-not-allowed

xrdp: skip connecting to chansrv when no channels enabled
This commit is contained in:
metalefty 2019-11-06 15:58:37 +09:00 committed by GitHub
commit c57e867a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))
{