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                [email protected]

Reply via email to