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. */