aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 6d3b5f0a8..a79904b8e 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -403,7 +403,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
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);
} else {
/* One or both aprint()'s might have failed,