Commit 642c20fc authored by Stas Korobeynikov's avatar Stas Korobeynikov Committed by Pavel Vainerman

add nx buffer init

parent 3c1abee4
......@@ -302,6 +302,11 @@ static int nx_set_nodelay(int fd);
static int nx_set_keepalive(int fd);
static int nx_set_lowdelay(int fd);
void nx_proxy_init()
{
buffer_init((&nx_input_buffer));
}
int nx_proxy_select(int maxfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout)
{
......
......@@ -64,6 +64,11 @@ extern int nx_switch_forward;
int nx_check_channel_input(Channel *channel, char *data, int *length, int limit);
/*
* Init buffer
*/
void nx_proxy_init();
/*
* Replace the select() with the version managing
* the NX descriptors.
*/
......
......@@ -660,6 +660,7 @@ main(int ac, char **av)
u_char conn_hash[SSH_DIGEST_MAX_LENGTH];
int nx_skip_config_file = 0;
nx_proxy_init();
if(ac > 1 && strcmp( av[1], "-nxstdinpass" ) == 0 ) {
NXStdinPassEnabled = 1;
......
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