Commit 75cc235c authored by Niels Möller's avatar Niels Möller
Browse files

(do_x11_req): Use server_x11_setup.

Rev: src/server_session.c:1.89
parent 42e4be68
......@@ -898,17 +898,18 @@ do_x11_req(struct channel_request *s UNUSED,
/* The client may only request one x11-forwarding, and only
* before starting a process. */
if (session->x11 || session->process
|| !(session->x11 = make_server_x11_info(protocol_length, protocol,
cookie_length, cookie,
|| !(session->x11 = server_x11_setup(channel,
protocol_length, protocol,
cookie_length, cookie,
screen, c, e)))
verbose("X11 request failed.\n");
EXCEPTION_RAISE(e, &x11_request_failed);
server_x11_listen(session->x11, channel->connection,
c, e);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment