[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible error in Docs on Authentication
[Thread Prev] | [Thread Next]
- Subject: Re: Possible error in Docs on Authentication
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 19 May 2017 07:52:30 +0200
- To: libssh@xxxxxxxxxx
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
Re: Possible error in Docs on Authentication | Jason Curl <jason@xxxxxxxxxxxxxxxxxxxxxxxx> |
Possible error in Docs on Authentication | Jason Curl <jason@xxxxxxxxxxxxxxxxxxxxxxxx> |