From cc25d747d45f139729f1728cc5dcbd1666709a4f Mon Sep 17 00:00:00 2001 From: Tilo Eckert Date: Mon, 15 Jun 2015 13:12:23 +0200 Subject: [PATCH] available auth_methods must be reset on partial authentication Signed-off-by: Tilo Eckert Reviewed-by: Andreas Schneider --- src/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.c b/src/auth.c index 20cac906..f4563734 100644 --- a/src/auth.c +++ b/src/auth.c @@ -209,8 +209,8 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_failure){ "Access denied. Authentication that can continue: %s", auth_methods); - session->auth_methods = 0; } + session->auth_methods = 0; if (strstr(auth_methods, "password") != NULL) { session->auth_methods |= SSH_AUTH_METHOD_PASSWORD; }