X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=x11fwd.c;h=ba729d1816f90a24642891a6197b7a3ac3946c0c;hb=6f6e9db932589470975ecc23261cd57eb9e710be;hp=895d8a99d50028c2e028a97390b70cf26580c8ef;hpb=ea301bdd9b892a5e70692f82f5c0b98bd585e775;p=PuTTY.git diff --git a/x11fwd.c b/x11fwd.c index 895d8a99..ba729d18 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -62,7 +62,7 @@ static int dummy_plug_closing static int dummy_plug_receive(Plug p, int urgent, char *data, int len) { return 1; } static void dummy_plug_sent(Plug p, int bufsize) { } -static int dummy_plug_accepting(Plug p, OSSocket sock) { return 1; } +static int dummy_plug_accepting(Plug p, accept_fn_t constructor, accept_ctx_t ctx) { return 1; } static const struct plug_function_table dummy_plug = { dummy_plug_log, dummy_plug_closing, dummy_plug_receive, dummy_plug_sent, dummy_plug_accepting @@ -510,7 +510,7 @@ static int x11_closing(Plug plug, const char *error_msg, int error_code, /* * Socket error. Slam the connection instantly shut. */ - sshfwd_unclean_close(pr->c); + sshfwd_unclean_close(pr->c, error_msg); } else { /* * Ordinary EOF received on socket. Send an EOF on the SSH