X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/260f3dec11d702a907fdaf5aaee143abb01d0eb2..8e1feb2760e62b619e3226572dca19001a192bd8:/ssh.c diff --git a/ssh.c b/ssh.c index c47aebd1..f48d1426 100644 --- a/ssh.c +++ b/ssh.c @@ -17,7 +17,7 @@ #define logevent(s) { logevent(s); \ if ((flags & FLAG_STDERR) && (flags & FLAG_VERBOSE)) \ - fprintf(stderr, "%s\n", s); } + { fprintf(stderr, "%s\n", s); fflush(stderr); } } #define bombout(msg) ( ssh_state = SSH_STATE_CLOSED, \ (s ? sk_close(s), s = NULL : 0), \ @@ -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. */