>From dd644ca2526e8e5cf64121f53664d2804600b325 Mon Sep 17 00:00:00 2001 From: Paulo Caetano <paulo.a.o.caet...@gmail.com> Date: Wed, 23 May 2012 12:03:19 +0100 Subject: [PATCH] Corrected error checking on socket creation
--- ssh2_multiexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh2_multiexec.c b/ssh2_multiexec.c index 18fe79b..5bc341f 100644 --- a/ssh2_multiexec.c +++ b/ssh2_multiexec.c @@ -218,7 +218,7 @@ int main(int argc, char *argv[]) */ sock = socket(AF_INET, SOCK_STREAM, 0); - if (socket == -1) + if (sock == -1) perror("Create socket"); sin.sin_family = AF_INET; -- 1.7.10 _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel