Fix completely stupid agent_exists test. (Hint to self: you have to
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 28 Apr 2001 11:25:58 +0000 (11:25 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 28 Apr 2001 11:25:58 +0000 (11:25 +0000)
actually _call_ a boolean-returning function, not just test its
address for nonzerohood.) Thanks Jacob.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1082 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index fe9f515..f48d142 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -3164,7 +3164,7 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt)
 
            method = 0;
 
-           if (!method && can_pubkey && agent_exists && !tried_agent) {
+           if (!method && can_pubkey && agent_exists() && !tried_agent) {
                /*
                 * Attempt public-key authentication using Pageant.
                 */