Fixed a build warning in ssh_userauth_autopubkey.

This commit is contained in:
Andreas Schneider
2010-03-25 15:30:23 +01:00
parent b168b8f03f
commit 51436cc3a3

View File

@@ -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;