mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
Fixed a build warning in ssh_userauth_autopubkey.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user