From 51436cc3a344bdbef64d138b927bc8d5e0a116b2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 25 Mar 2010 15:30:23 +0100 Subject: 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 1d75554..bd4d64c 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -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; -- cgit