summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_listen.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-26 13:33:23 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-26 13:33:23 -0700
commit27055d5762d23ae3996e7e41ef45ef6454fa2d65 (patch)
treeb45025733988961e08bde0c7e495f73c939a9937 /xrdp/xrdp_listen.c
parentfde7be5151f7db096610cb59ca964e22e6af79fb (diff)
downloadxrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.tar.gz
xrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.zip
coverity: improper use of negative value
Diffstat (limited to 'xrdp/xrdp_listen.c')
-rw-r--r--xrdp/xrdp_listen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c
index fb4d9aec..b2b19ca2 100644
--- a/xrdp/xrdp_listen.c
+++ b/xrdp/xrdp_listen.c
@@ -244,7 +244,8 @@ xrdp_listen_get_port_address(char *port, int port_bytes,
list_delete(values);
}
- g_file_close(fd);
+ if (fd != -1)
+ g_file_close(fd);
/* startup_param overrides */
if (startup_param->port[0] != 0)