]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Check both variables, not the same one twice. Pointed out by Colin Hogben
authorJames Housley <jim@thehousleys.net>
Tue, 19 Jun 2007 13:23:21 +0000 (13:23 +0000)
committerJames Housley <jim@thehousleys.net>
Tue, 19 Jun 2007 13:23:21 +0000 (13:23 +0000)
lib/ssh.c

index 6d3b5f0a8c58037b0bb72e01eceecc6c0c58e976..a79904b8e54fbf48bb88b116cb7f5412e5c938ea 100644 (file)
--- 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,