1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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]
This commit is contained in:
Simon Tatham 2001-04-28 11:25:58 +00:00
parent 64b27d6bf4
commit 76dfe1cac9

2
ssh.c
View File

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