Fix mistake

This commit is contained in:
Andrew Pamment 2017-04-04 15:10:35 +10:00
parent ace6e5972b
commit 8e3e195260

2
main.c
View File

@ -708,7 +708,7 @@ void serverssh(int port) {
//ssh_bind_listen(p_ssh_bind); //ssh_bind_listen(p_ssh_bind);
ssh_sock = socket(AF_INET6, SOCK_STREAM, 0); ssh_sock = socket(AF_INET6, SOCK_STREAM, 0);
if (server_socket == -1) { if (ssh_sock == -1) {
fprintf(stderr, "Error starting SSH server.\n"); fprintf(stderr, "Error starting SSH server.\n");
exit(-1); exit(-1);
} }