[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible error in Docs on Authentication


On Wednesday, 17 May 2017 22:29:09 CEST Jason Curl wrote:
> Hi,
> 
> I've noticed a very small detail on this page:
> 
> http://api.libssh.org/master/libssh_tutor_authentication.html
> 
> int test_several_auth_methods(ssh_session session)
> {
>   int method, rc;
>   rc = ssh_userauth_none(session, NULL);
>   if (rc != SSH_AUTH_SUCCESS) {
>       return rc;
>   }
> 
> I believe it should be:
> If (rc == SSH_AUTH_SUCCESS) {
>   return rc;
> }

I think it should be:

if (rc == SSH_AUTH_SUCCESS || rc == SSH_AUTH_ERROR) {
     return rc;
}

Do you agree? :-)


-- 
Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Follow-Ups:
Re: Possible error in Docs on AuthenticationJason Curl <jason@xxxxxxxxxxxxxxxxxxxxxxxx>
References:
Possible error in Docs on AuthenticationJason Curl <jason@xxxxxxxxxxxxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org