diff options
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index 1d75554b..bd4d64c3 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -1006,12 +1006,15 @@ int ssh_userauth_autopubkey(ssh_session session, const char *passphrase) { } /* if agent is running */ #endif + for (it = ssh_list_get_iterator(session->identity); it != NULL; it = it->next) { char *privkey_file = NULL; int privkey_open = 0; + privkey = NULL; + privkey_file = dir_expand_dup(session, it->data, 1); if (privkey_file == NULL) { continue; |