From a1802f1c327062ea1ca522af0340def4149dc257 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Apr 2009 14:17:57 +0000 Subject: Fix segfault. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@661 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/auth.c') diff --git a/libssh/auth.c b/libssh/auth.c index c83dea1f..9293b32f 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -836,7 +836,7 @@ int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) { for (i = 0, pubkey = try_publickey_from_file(session, keytab[i], &privkeyfile, &type); i < size; - pubkey = try_publickey_from_file(session, keytab[++i], + pubkey = try_publickey_from_file(session, keytab[i++], &privkeyfile, &type)) { if (pubkey == NULL) { continue; -- cgit