diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-30 14:17:57 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-30 14:17:57 +0000 |
commit | a1802f1c327062ea1ca522af0340def4149dc257 (patch) | |
tree | b992b1ae91df757ea6366d586c7ce702b3ecfa34 /libssh/auth.c | |
parent | d68016050082930e4e7fa7c87ef9c1046f9b518b (diff) | |
download | libssh-a1802f1c327062ea1ca522af0340def4149dc257.tar.gz libssh-a1802f1c327062ea1ca522af0340def4149dc257.tar.xz libssh-a1802f1c327062ea1ca522af0340def4149dc257.zip |
Fix segfault.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@661 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index c83dea1..9293b32 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; |