From: James Housley Date: Tue, 19 Jun 2007 13:23:21 +0000 (+0000) Subject: Check both variables, not the same one twice. Pointed out by Colin Hogben X-Git-Tag: curl-7_16_3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=277bab0c7b7f308dbe38e272ff6914fffa4c524e;p=thirdparty%2Fcurl.git Check both variables, not the same one twice. Pointed out by Colin Hogben --- diff --git a/lib/ssh.c b/lib/ssh.c index 6d3b5f0a8c..a79904b8e5 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,