]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Daniel Meidlinger points out a redundant test :-)
authorSimon Tatham <anakin@pobox.com>
Sun, 19 Feb 2006 22:37:31 +0000 (22:37 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 19 Feb 2006 22:37:31 +0000 (22:37 +0000)
[originally from svn r6579]

ssh.c

diff --git a/ssh.c b/ssh.c
index aa619e3e8e5366a9931f974d764157acdc71dab2..60ddefccd939f71ceca92aad5ec0d8b00bcae506 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -6613,7 +6613,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
        s->nkeys = 0;
        s->agent_response = NULL;
        s->pkblob_in_agent = NULL;
-       if (ssh->cfg.tryagent && agent_exists() && ssh->cfg.tryagent) {
+       if (ssh->cfg.tryagent && agent_exists()) {
 
            void *r;