summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-26 15:35:19 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-26 15:35:19 -0700
commit67119ecc81dd334aa767a56ef8d9d691d480d7c0 (patch)
tree55906df5baf3d695a9cb0ec652a5536b968fde62
parent0915d33d707d7bd29e724ebc9412a17fdd5840d4 (diff)
downloadxrdp-proprietary-67119ecc81dd334aa767a56ef8d9d691d480d7c0.tar.gz
xrdp-proprietary-67119ecc81dd334aa767a56ef8d9d691d480d7c0.zip
coverity: array compared against 0
-rw-r--r--xrdp/xrdp_mm.c2
-rw-r--r--xrdp/xrdp_wm.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index 66e9d4c2..aaa90a3a 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -1229,7 +1229,7 @@ xrdp_mm_process_login_response(struct xrdp_mm *self, struct stream *s)
self->wm->dragging = 0;
/* 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);
}
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c
index 6179d2e8..591c8a51 100644
--- a/xrdp/xrdp_wm.c
+++ b/xrdp/xrdp_wm.c
@@ -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 */
g_strncpy(section_name, autorun_name, 255);
}
- else if (self->session->client_info->domain &&
- self->session->client_info->domain[0] != '_')
+ else if (self->session->client_info->domain[0] != '_')
{
/* domain names that starts with '_' are reserved for IP/DNS to
* simplify for the user in a proxy setup */