Put the \001 prefix back on scp error messages when they're sent to
[u/mdw/putty] / 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.
                 */