work on ssh ipv6

This commit is contained in:
Andrew Pamment 2017-04-04 15:19:16 +10:00
parent dfcefca79a
commit 5de3fbf8d6

3
main.c
View File

@ -775,7 +775,9 @@ void serverssh(int port) {
pid = fork();
if (pid == 0) {
close(ssh_sock);
if (ssh_handle_key_exchange(p_ssh_session)) {
fprintf(stderr, "Key exchange failed.\n");
exit(-1);
}
if (ssh_authenticate(p_ssh_session) == 1) {
@ -877,6 +879,7 @@ void serverssh(int port) {
exit(0);
} else if (pid > 0) {
close(csock);
free(ip);
} else {
}