Skip to content

Commit

Permalink
xrdp: skip connecting to chansrv when no channels enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
metalefty committed Aug 22, 2019
1 parent 1e4b03e commit f37faca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xrdp/xrdp_mm.c
Expand Up @@ -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))
{
Expand Down

0 comments on commit f37faca

Please sign in to comment.