[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] auth: If the agent fails, fall back to regular path
[Thread Prev] | [Thread Next]
- Subject: Re: [PATCH] auth: If the agent fails, fall back to regular path
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 18 Jun 2013 16:43:43 +0200
- To: libssh@xxxxxxxxxx
- Cc: Nicolas Viennot <nicolas@xxxxxxxxxxx>
On Friday 14 June 2013 23:51:47 Nicolas Viennot wrote:
> It's causing issues on MacOSX when ssh_agent_get_ident_count()
> reports "Agent count: 0".
> ---
> src/auth.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/auth.c b/src/auth.c
> index 9d099a5..5b8f748 100644
> --- a/src/auth.c
> +++ b/src/auth.c
> @@ -1109,7 +1109,7 @@ int ssh_userauth_publickey_auto(ssh_session session,
> #ifndef _WIN32
> /* Try authentication with ssh-agent first */
> rc = ssh_userauth_agent(session, username);
> - if (rc == SSH_AUTH_ERROR || rc == SSH_AUTH_SUCCESS) {
> + if (rc == SSH_AUTH_SUCCESS) {
> return rc;
> }
> if (rc == SSH_AUTH_AGAIN)
Pushed thanks!
--
Andreas Schneider GPG-ID: F33E3FC6
www.cryptomilk.org asn@xxxxxxxxxxxxxx
| [PATCH] auth: If the agent fails, fall back to regular path | Nicolas Viennot <nicolas@xxxxxxxxxxx> |