Fix segfault.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@661 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-30 14:17:57 +00:00
parent d680160500
commit a1802f1c32

View File

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