diff options
author | Max Leske <maxleske@gmail.com> | 2015-08-14 15:42:59 +0200 |
---|---|---|
committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2015-11-04 16:40:52 -0800 |
commit | d960fb3267ee364918d8e52ab09f7d1d8ac50c8e (patch) | |
tree | 0f87eab094df178df36b661aed37d26fe9d1ed5d | |
parent | c1dabd188d4aad1b67c3788a566653643fbf24af (diff) | |
download | libgit2-d960fb3267ee364918d8e52ab09f7d1d8ac50c8e.tar.gz |
added a single line of additional error reporting from libssh2 when failing to retrieve the list of authentication methods
-rw-r--r-- | src/transports/ssh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transports/ssh.c b/src/transports/ssh.c index e3792ebb3..250e588e7 100644 --- a/src/transports/ssh.c +++ b/src/transports/ssh.c @@ -756,8 +756,10 @@ static int list_auth_methods(int *out, LIBSSH2_SESSION *session, const char *use list = libssh2_userauth_list(session, username, strlen(username)); /* either error, or the remote accepts NONE auth, which is bizarre, let's punt */ - if (list == NULL && !libssh2_userauth_authenticated(session)) + if (list == NULL && !libssh2_userauth_authenticated(session)) { + ssh_error(session, "Failed to retrieve list of SSH authentication methods"); return -1; + } ptr = list; while (ptr) { |