fix client hanging on incorrect password

This commit is contained in:
Andrew Pamment 2016-08-07 14:28:27 +10:00
parent 9c8b4802ab
commit 541fd12300

1
main.c
View File

@ -599,6 +599,7 @@ void serverssh(int port) {
ssh_event_free(event);
}
ssh_disconnect(p_ssh_session);
ssh_finalize();
exit(0);
} else if (pid > 0) {