]> git.proxmox.com Git - libgit2.git/commitdiff
added a single line of additional error reporting from libssh2 when failing to retrie...
authorMax Leske <maxleske@gmail.com>
Fri, 14 Aug 2015 13:42:59 +0000 (15:42 +0200)
committerMax Leske <maxleske@gmail.com>
Fri, 14 Aug 2015 13:42:59 +0000 (15:42 +0200)
src/transports/ssh.c

index 8f5a7164b81bb7ff294609ed9bb62a7b33020ecd..ffa4a24a7e9aae674966cc133d1a6d70d3d9e569 100644 (file)
@@ -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) {