From: jacob Date: Fri, 4 Nov 2005 23:31:11 +0000 (+0000) Subject: Fix minor hiccup in SSH-1 p-k auth. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/7b5753240c81b4f27adc8518cc4b31bf58f67fec?hp=43536490db8a8c1349aaa7aeeb3c7cc29d9da484 Fix minor hiccup in SSH-1 p-k auth. git-svn-id: svn://svn.tartarus.org/sgt/putty@6447 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 5ca50402..71388a36 100644 --- a/ssh.c +++ b/ssh.c @@ -3459,7 +3459,6 @@ static int do_ssh1_login(Ssh ssh, unsigned char *in, int inlen, break; /* go and try something else */ } else if (ret == -1) { c_write_str(ssh, "Wrong passphrase.\r\n"); /* FIXME */ - s->tried_publickey = 0; got_passphrase = FALSE; /* and try again */ } else { @@ -3478,7 +3477,7 @@ static int do_ssh1_login(Ssh ssh, unsigned char *in, int inlen, crWaitUntil(pktin); if (pktin->type == SSH1_SMSG_FAILURE) { c_write_str(ssh, "Server refused our public key.\r\n"); - continue; /* go and try password */ + continue; /* go and try something else */ } if (pktin->type != SSH1_SMSG_AUTH_RSA_CHALLENGE) { bombout(("Bizarre response to offer of public key")); @@ -3518,7 +3517,7 @@ static int do_ssh1_login(Ssh ssh, unsigned char *in, int inlen, if (flags & FLAG_VERBOSE) c_write_str(ssh, "Failed to authenticate with" " our public key.\r\n"); - continue; /* go and try password */ + continue; /* go and try something else */ } else if (pktin->type != SSH1_SMSG_SUCCESS) { bombout(("Bizarre response to RSA authentication response")); crStop(0);