mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 19:04:05 +00:00
added a single line of additional error reporting from libssh2 when failing to retrieve the list of authentication methods
This commit is contained in:
parent
9f1af7f279
commit
241414ee33
@ -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));
|
list = libssh2_userauth_list(session, username, strlen(username));
|
||||||
|
|
||||||
/* either error, or the remote accepts NONE auth, which is bizarre, let's punt */
|
/* 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;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
ptr = list;
|
ptr = list;
|
||||||
while (ptr) {
|
while (ptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user