From dfcefca79a3ec71da505fea9656fcb51ba0be30b Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 4 Apr 2017 15:14:06 +1000 Subject: [PATCH] Close SSH sockets --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 42e7550..2b1a5da 100644 --- a/main.c +++ b/main.c @@ -873,10 +873,10 @@ void serverssh(int port) { } ssh_disconnect(p_ssh_session); ssh_finalize(); - + close(csock); exit(0); } else if (pid > 0) { - + close(csock); } else { }