diff --git a/doc/authentication.dox b/doc/authentication.dox index 30690e8c..8ade5422 100644 --- a/doc/authentication.dox +++ b/doc/authentication.dox @@ -305,7 +305,7 @@ int test_several_auth_methods(ssh_session session) int method, rc; rc = ssh_userauth_none(session, NULL); - if (rc != SSH_AUTH_SUCCESS) { + if (rc == SSH_AUTH_SUCCESS || rc == SSH_AUTH_ERROR) { return rc; }