]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
logeventf()'s first argument is ssh, not ssh->frontend! This is what
authorSimon Tatham <anakin@pobox.com>
Wed, 18 Dec 2002 09:47:20 +0000 (09:47 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 18 Dec 2002 09:47:20 +0000 (09:47 +0000)
I get for making the latter a `void *' - type checking deserts me in
my hour of need. Should fix Andrey Borzenkov's bug.

[originally from svn r2340]

ssh.c

diff --git a/ssh.c b/ssh.c
index 6c60bd2a6a1739886b37eeb9df6c03d10938ada8..94d3d1059cf7b6c616e08cdd258994d8f3f3ea06 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -4375,8 +4375,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
        /* Load the pub half of cfg.keyfile so we notice if it's in Pageant */
        if (*cfg.keyfile) {
            int keytype;
-           logeventf(ssh->frontend,
-                     "Reading private key file \"%.150s\"", cfg.keyfile);
+           logeventf(ssh, "Reading private key file \"%.150s\"", cfg.keyfile);
            keytype = key_type(cfg.keyfile);
            if (keytype == SSH_KEYTYPE_SSH2) {
                s->publickey_blob =
@@ -4384,8 +4383,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
                                         &s->publickey_bloblen);
            } else {
                char *msgbuf;
-               logeventf(ssh->frontend,
-                         "Unable to use this key file (%s)",
+               logeventf(ssh, "Unable to use this key file (%s)",
                          key_type_to_str(keytype));
                msgbuf = dupprintf("Unable to use key file \"%.150s\""
                                   " (%s)\r\n", cfg.keyfile,