Try and fix wrong passwords hanging ssh

This commit is contained in:
Andrew Pamment 2016-08-07 14:18:57 +10:00
parent c8c07896c7
commit 9c8b4802ab

5
main.c
View File

@ -376,9 +376,8 @@ int ssh_authenticate(ssh_session p_ssh_session) {
ssh_message_free(message);
return 1;
}
ssh_message_auth_set_methods(message, SSH_AUTH_METHOD_PASSWORD | SSH_AUTH_METHOD_INTERACTIVE);
ssh_message_reply_default(message);
break;
ssh_message_free(message);
return 0;
case SSH_AUTH_METHOD_NONE:
default:
ssh_message_auth_set_methods(message, SSH_AUTH_METHOD_PASSWORD | SSH_AUTH_METHOD_INTERACTIVE);