Commit 277bab0c authored by James Housley's avatar James Housley
Browse files

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

parent fc3c5dae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,