aboutsummaryrefslogtreecommitdiff
path: root/doc/authentication.dox
diff options
context:
space:
mode:
Diffstat (limited to 'doc/authentication.dox')
-rw-r--r--doc/authentication.dox2
1 files changed, 1 insertions, 1 deletions
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;
}