Merge pull request #483 from proski/autorun

Fix regression in domain to session type mapping
This commit is contained in:
metalefty 2016-11-16 17:00:23 +09:00 committed by GitHub
commit 0712cf2747

View File

@ -583,7 +583,8 @@ xrdp_wm_init(struct xrdp_wm *self)
/* if autorun is configured in xrdp.ini, we enforce that module to be loaded */ /* if autorun is configured in xrdp.ini, we enforce that module to be loaded */
g_strncpy(section_name, autorun_name, 255); g_strncpy(section_name, autorun_name, 255);
} }
else if (self->session->client_info->domain[0] != '_') else if (self->session->client_info->domain[0] != '\0' &&
self->session->client_info->domain[0] != '_')
{ {
/* domain names that starts with '_' are reserved for IP/DNS to /* domain names that starts with '_' are reserved for IP/DNS to
* simplify for the user in a proxy setup */ * simplify for the user in a proxy setup */