X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/1ece9da72e9dd60b598bc8e2958ddc3ef8094d28..d74d141c2daed084c8a62c5dc5b88e801b81ee5a:/x11fwd.c diff --git a/x11fwd.c b/x11fwd.c index 5be69b86..b13f695f 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -197,10 +197,9 @@ char *x11_init(Socket * s, char *display, void *c) void x11_close(Socket s) { struct X11Private *pr; - if (!s) - return; - pr = (struct X11Private *) sk_get_private_ptr(s); - + if (!s) + return; + pr = (struct X11Private *) sk_get_private_ptr(s); if (pr->auth_protocol) { sfree(pr->auth_protocol); sfree(pr->auth_data);