From 5d339aa9e29e290661f683bac19de1b212607919 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 25 Mar 2010 15:30:23 +0100 Subject: [PATCH] Fixed a build warning in ssh_userauth_autopubkey. --- libssh/auth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libssh/auth.c b/libssh/auth.c index 399b02db..b67d57d8 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -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;