aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Housley <jim@thehousleys.net>2007-06-19 13:23:21 +0000
committerJames Housley <jim@thehousleys.net>2007-06-19 13:23:21 +0000
commit277bab0c7b7f308dbe38e272ff6914fffa4c524e (patch)
treee80221de6f7f6e9f410246b740ed3074bb1ec7de /lib
parentfc3c5dae87b74186b99e00a16fbd2e4f7a32a9d1 (diff)
Check both variables, not the same one twice. Pointed out by Colin Hogben
Diffstat (limited to 'lib')
-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,