# HG changeset patch # User Matt Johnston # Date 1251198695 0 # Node ID 1929bbe3fa84f3b1dcb7b6cb5d25ace571f742cc # Parent 12fc5b342dc091fcd9d5afb739a7be7dc0e1770a# Parent fad3eb63b907d78a648a87e2a6868110ac2a59ac merge of '0d7a9127af37d6e74efc5ec031a7001ce63d334d' and 'e35cd321b6d4fab6ad854827249f610da3bb6878' diff -r 12fc5b342dc0 -r 1929bbe3fa84 cli-chansession.c --- a/cli-chansession.c Thu Aug 13 14:57:27 2009 +0000 +++ b/cli-chansession.c Tue Aug 25 11:11:35 2009 +0000 @@ -381,20 +381,20 @@ #ifdef ENABLE_CLI_NETCAT +const struct ChanType cli_chan_netcat = { + 0, /* sepfds */ + "direct-tcpip", + cli_init_stdpipe_sess, /* inithandler */ + NULL, + NULL, + cli_closechansess +}; + void cli_send_netcat_request() { const unsigned char* source_host = "127.0.0.1"; const int source_port = 22; - const struct ChanType cli_chan_netcat = { - 0, /* sepfds */ - "direct-tcpip", - cli_init_stdpipe_sess, /* inithandler */ - NULL, - NULL, - cli_closechansess - }; - cli_opts.wantpty = 0; if (send_msg_channel_open_init(STDIN_FILENO, &cli_chan_netcat)