From 9c8b4802ab425b65704d7be955abc41b6ee0d870 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 7 Aug 2016 14:18:57 +1000 Subject: [PATCH] Try and fix wrong passwords hanging ssh --- main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 42962e1..51e6837 100644 --- a/main.c +++ b/main.c @@ -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);