mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user