]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Make sure that auth->xdmseen is initialised (to NULL) even if it's not used.
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 21 Feb 2005 18:13:51 +0000 (18:13 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 21 Feb 2005 18:13:51 +0000 (18:13 +0000)
[originally from svn r5375]

x11fwd.c

index b868ecb53ad4445e43fb064525dc656949299d20..760a80b128a6cf09f0b04fb840510a2973164348 100644 (file)
--- a/x11fwd.c
+++ b/x11fwd.c
@@ -111,6 +111,7 @@ void *x11_invent_auth(char *proto, int protomaxlen,
        auth->fakelen = 16;
        for (i = 0; i < 16; i++)
            auth->fakedata[i] = random_byte();
+       auth->xdmseen = NULL;
     } else {
        assert(proto_id == X11_XDM);
        auth->fakeproto = X11_XDM;