summaryrefslogtreecommitdiffstats
path: root/sesman/tools/sestest.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 /sesman/tools/sestest.c
parentfde7be5151f7db096610cb59ca964e22e6af79fb (diff)
downloadxrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.tar.gz
xrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.zip
coverity: improper use of negative value
Diffstat (limited to 'sesman/tools/sestest.c')
-rw-r--r--sesman/tools/sestest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sesman/tools/sestest.c b/sesman/tools/sestest.c
index f2823eb6..d42b31de 100644
--- a/sesman/tools/sestest.c
+++ b/sesman/tools/sestest.c
@@ -38,6 +38,9 @@ int main(int argc, char **argv)
scp_init(&log);
sock = g_tcp_socket();
+ if (sock < 0)
+ return 1;
+
s = scp_session_create();
c = scp_connection_create(sock);