Fixed a build warning in ssh_userauth_autopubkey.

This commit is contained in:
Andreas Schneider
2010-03-25 15:30:23 +01:00
parent af7f69c515
commit 5d339aa9e2

View File

@@ -860,12 +860,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;