Check both variables, not the same one twice. Pointed out by Colin Hogben

This commit is contained in:
James Housley 2007-06-19 13:23:21 +00:00
Родитель fc3c5dae87
Коммит 277bab0c7b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -403,7 +403,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
infof(conn->data, "Using ssh private key file %s\n", sshc->rsa); infof(conn->data, "Using ssh private key file %s\n", sshc->rsa);
} }
if (sshc->rsa_pub && sshc->rsa_pub) { if (sshc->rsa_pub && sshc->rsa) {
state(conn, SSH_AUTH_PKEY); state(conn, SSH_AUTH_PKEY);
} else { } else {
/* One or both aprint()'s might have failed, /* One or both aprint()'s might have failed,