mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +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],
|
for (i = 0, pubkey = try_publickey_from_file(session, keytab[i],
|
||||||
&privkeyfile, &type);
|
&privkeyfile, &type);
|
||||||
i < size;
|
i < size;
|
||||||
pubkey = try_publickey_from_file(session, keytab[++i],
|
pubkey = try_publickey_from_file(session, keytab[i++],
|
||||||
&privkeyfile, &type)) {
|
&privkeyfile, &type)) {
|
||||||
if (pubkey == NULL) {
|
if (pubkey == NULL) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user