From e4f80bd1423942adda559ddbe031b4c029ee6d7a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 6 Jun 2017 10:18:25 +0200 Subject: [PATCH] doc: Fix documentation for ssh_userauth_none() usage Signed-off-by: Andreas Schneider --- doc/authentication.dox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }