mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +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 */
|
} /* if agent is running */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
for (it = ssh_list_get_iterator(session->identity);
|
for (it = ssh_list_get_iterator(session->identity);
|
||||||
it != NULL;
|
it != NULL;
|
||||||
it = it->next) {
|
it = it->next) {
|
||||||
char *privkey_file = NULL;
|
char *privkey_file = NULL;
|
||||||
int privkey_open = 0;
|
int privkey_open = 0;
|
||||||
|
|
||||||
|
privkey = NULL;
|
||||||
|
|
||||||
privkey_file = dir_expand_dup(session, it->data, 1);
|
privkey_file = dir_expand_dup(session, it->data, 1);
|
||||||
if (privkey_file == NULL) {
|
if (privkey_file == NULL) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user