mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
auth: Reset errors on successful authentication
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -295,6 +295,8 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_success) {
|
|||||||
session->current_crypto->do_compress_in = 1;
|
session->current_crypto->do_compress_in = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset errors by previous authentication methods. */
|
||||||
|
ssh_reset_error(session);
|
||||||
session->auth.current_method = SSH_AUTH_METHOD_UNKNOWN;
|
session->auth.current_method = SSH_AUTH_METHOD_UNKNOWN;
|
||||||
return SSH_PACKET_USED;
|
return SSH_PACKET_USED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user