summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-23 19:07:38 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-23 19:07:38 -0700
commitfde7be5151f7db096610cb59ca964e22e6af79fb (patch)
treef4bdecbe240522b0ea8ed81f74d6c3c75dc88b10 /sesman/chansrv
parent0c63a8feb3c52de98a5da51a0a0f743450c34645 (diff)
downloadxrdp-proprietary-fde7be5151f7db096610cb59ca964e22e6af79fb.tar.gz
xrdp-proprietary-fde7be5151f7db096610cb59ca964e22e6af79fb.zip
coverity: fixed issue argument cannot be negative
Diffstat (limited to 'sesman/chansrv')
-rw-r--r--sesman/chansrv/devredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c
index 121c1190..5a8ab3ed 100644
--- a/sesman/chansrv/devredir.c
+++ b/sesman/chansrv/devredir.c
@@ -118,7 +118,7 @@ dev_redir_init(void)
} u;
/* get a random number that will act as a unique clientID */
- if ((fd = open("/dev/urandom", O_RDONLY)))
+ if ((fd = open("/dev/urandom", O_RDONLY)) != -1)
{
if (read(fd, u.buf, 4) != 4)
{