mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Make sure that auth->xdmseen is initialised (to NULL) even if it's not used.
[originally from svn r5375]
This commit is contained in:
parent
38c9737e19
commit
f09e3841de
1
x11fwd.c
1
x11fwd.c
@ -111,6 +111,7 @@ void *x11_invent_auth(char *proto, int protomaxlen,
|
|||||||
auth->fakelen = 16;
|
auth->fakelen = 16;
|
||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++)
|
||||||
auth->fakedata[i] = random_byte();
|
auth->fakedata[i] = random_byte();
|
||||||
|
auth->xdmseen = NULL;
|
||||||
} else {
|
} else {
|
||||||
assert(proto_id == X11_XDM);
|
assert(proto_id == X11_XDM);
|
||||||
auth->fakeproto = X11_XDM;
|
auth->fakeproto = X11_XDM;
|
||||||
|
Loading…
Reference in New Issue
Block a user