aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilo Eckert <tilo.eckert@flam.de>2015-06-15 13:12:23 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-06-29 11:11:25 +0200
commit57fd8e3187a7812b9000394d5c1335a9d499c5f9 (patch)
treec07e50eb49290477f9c894040f7922e4ff0ed0a9
parent03972b16c9e4e6e394e1df48bb4b7915a6ad7b7b (diff)
downloadlibssh-57fd8e3187a7812b9000394d5c1335a9d499c5f9.tar.gz
libssh-57fd8e3187a7812b9000394d5c1335a9d499c5f9.tar.xz
libssh-57fd8e3187a7812b9000394d5c1335a9d499c5f9.zip
available auth_methods must be reset on partial authentication
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit cc25d747d45f139729f1728cc5dcbd1666709a4f)
-rw-r--r--src/auth.c2
1 files changed, 1 insertions, 1 deletions
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;
}