From 76dfe1cac932a214298410aee2ab59e72b132b86 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 28 Apr 2001 11:25:58 +0000 Subject: [PATCH] Fix completely stupid agent_exists test. (Hint to self: you have to actually _call_ a boolean-returning function, not just test its address for nonzerohood.) Thanks Jacob. [originally from svn r1082] --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index fe9f515c..f48d1426 100644 --- 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. */