auth: Fix error returned in ssh_userauth_try_publickey()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2022-06-22 15:22:37 +02:00
committed by Jakub Jelen
parent 51a53cc6d4
commit f6ad8057a7

View File

@@ -518,7 +518,7 @@ int ssh_userauth_try_publickey(ssh_session session,
SSH_FATAL,
"Wrong state (%d) during pending SSH call",
session->pending_call_state);
return SSH_ERROR;
return SSH_AUTH_ERROR;
}
/* Check if the given public key algorithm is allowed */