From 8e3e195260b5f4b7a66dba84180681a62cf24411 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 4 Apr 2017 15:10:35 +1000 Subject: [PATCH] Fix mistake --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 6f7e77e..42e7550 100644 --- a/main.c +++ b/main.c @@ -708,7 +708,7 @@ void serverssh(int port) { //ssh_bind_listen(p_ssh_bind); ssh_sock = socket(AF_INET6, SOCK_STREAM, 0); - if (server_socket == -1) { + if (ssh_sock == -1) { fprintf(stderr, "Error starting SSH server.\n"); exit(-1); }