Close SSH sockets

This commit is contained in:
Andrew Pamment 2017-04-04 15:14:06 +10:00
parent 8e3e195260
commit dfcefca79a

4
main.c
View File

@ -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 {
}