]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
When we fail to get a response from Pageant, we should log the fact.
authorSimon Tatham <anakin@pobox.com>
Wed, 8 Jun 2011 20:39:06 +0000 (20:39 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 8 Jun 2011 20:39:06 +0000 (20:39 +0000)
Currently, if the IPC exchange goes wrong, the Event Log just prints
"Pageant is running. Requesting keys." and then goes on to the next
step without ever saying what happened.

[originally from svn r9177]

ssh.c

diff --git a/ssh.c b/ssh.c
index c3c3f11777ce49ac729da234628bfc4214047544..05530fe8e86711352e7c0b65e4b085a5e4d71737 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -3744,7 +3744,9 @@ static int do_ssh1_login(Ssh ssh, unsigned char *in, int inlen,
                sfree(s->response);
                if (s->publickey_blob && !s->tried_publickey)
                    logevent("Configured key file not in Pageant");
-           }
+           } else {
+                logevent("Failed to get reply from Pageant");
+            }
            if (s->authed)
                break;
        }
@@ -7500,6 +7502,8 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
                        s->nkeys = 0;
                    }
                }
+           } else {
+                logevent("Failed to get reply from Pageant");
            }
        }