Make sure that auth->xdmseen is initialised (to NULL) even if it's not used.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 21 Feb 2005 18:13:51 +0000 (18:13 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 21 Feb 2005 18:13:51 +0000 (18:13 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5375 cda61777-01e9-0310-a592-d414129be87e

x11fwd.c

index b868ecb..760a80b 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;