- Move netcat struct to where it stays in scope.

--HG--
extra : convert_revision : e35cd321b6d4fab6ad854827249f610da3bb6878
This commit is contained in:
Matt Johnston 2009-08-25 05:24:18 +00:00
parent 2f1ed9a34b
commit d773103730

View File

@ -381,11 +381,6 @@ static int cli_initchansess(struct Channel *channel) {
#ifdef ENABLE_CLI_NETCAT
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",
@ -395,6 +390,11 @@ void cli_send_netcat_request() {
cli_closechansess
};
void cli_send_netcat_request() {
const unsigned char* source_host = "127.0.0.1";
const int source_port = 22;
cli_opts.wantpty = 0;
if (send_msg_channel_open_init(STDIN_FILENO, &cli_chan_netcat)