From a0fec812210d4d2484bb0ee6d4837fe9cb302f64 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 27 Aug 2018 09:27:01 +0200 Subject: [PATCH] auth: Reset errors on successful authentication Signed-off-by: Andreas Schneider --- src/auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/auth.c b/src/auth.c index 85aa79ea..9cd80c43 100644 --- a/src/auth.c +++ b/src/auth.c @@ -295,6 +295,8 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_success) { 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; return SSH_PACKET_USED; }