summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libssh/auth.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index 9b91d0c..e094562 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -161,10 +161,11 @@ static int wait_auth_status(SSH_SESSION *session, int kbdint) {
}
int ssh_auth_list(SSH_SESSION *session) {
- if (session == NULL) {
- return -1;
- }
- return session->auth_methods;
+ if (session == NULL) {
+ return -1;
+ }
+
+ return session->auth_methods;
}
int ssh_userauth_list(SSH_SESSION *session, const char *username){