coverity: array compared against 0
This commit is contained in:
parent
0915d33d70
commit
67119ecc81
@ -1229,7 +1229,7 @@ xrdp_mm_process_login_response(struct xrdp_mm *self, struct stream *s)
|
|||||||
self->wm->dragging = 0;
|
self->wm->dragging = 0;
|
||||||
|
|
||||||
/* connect channel redir */
|
/* connect channel redir */
|
||||||
if ((ip == 0) || (g_strcmp(ip, "127.0.0.1") == 0) || (ip[0] == 0))
|
if ((g_strcmp(ip, "127.0.0.1") == 0) || (ip[0] == 0))
|
||||||
{
|
{
|
||||||
g_snprintf(port, 255, "/tmp/.xrdp/xrdp_chansrv_socket_%d", 7200 + display);
|
g_snprintf(port, 255, "/tmp/.xrdp/xrdp_chansrv_socket_%d", 7200 + display);
|
||||||
}
|
}
|
||||||
|
@ -580,8 +580,7 @@ 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 &&
|
else if (self->session->client_info->domain[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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user