Warn on close. Also warn before use.
[sgt/putty] / 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;