diff options
author | Tilo Eckert <tilo.eckert@flam.de> | 2015-06-15 13:12:23 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-06-29 11:11:25 +0200 |
commit | 57fd8e3187a7812b9000394d5c1335a9d499c5f9 (patch) | |
tree | c07e50eb49290477f9c894040f7922e4ff0ed0a9 | |
parent | 03972b16c9e4e6e394e1df48bb4b7915a6ad7b7b (diff) | |
download | libssh-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |