From 27055d5762d23ae3996e7e41ef45ef6454fa2d65 Mon Sep 17 00:00:00 2001 From: Laxmikant Rashinkar Date: Sat, 26 Jul 2014 13:33:23 -0700 Subject: coverity: improper use of negative value --- sesman/tools/sestest.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sesman/tools/sestest.c') 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); -- cgit v1.2.1