diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-02-20 23:16:38 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-02-20 23:16:38 +0800 |
commit | 364a53577eb33f20bed877fc5d4a54de829707d8 (patch) | |
tree | 3006ce1d1a77e50fbb679cd4a8a454423f66d350 /cli-session.c | |
parent | 1b1997bf2da9322c526ec1da4358aae94f7de06e (diff) |
Move generic network routines to netio.c
--HG--
branch : fastopen
Diffstat (limited to 'cli-session.c')
-rw-r--r-- | cli-session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli-session.c b/cli-session.c index 8cd75f8..08f4ff5 100644 --- a/cli-session.c +++ b/cli-session.c @@ -37,6 +37,7 @@ #include "chansession.h" #include "agentfwd.h" #include "crypto_desc.h" +#include "netio.h" static void cli_remoteclosed(); static void cli_sessionloop(); @@ -95,11 +96,11 @@ static const struct ChanType *cli_chantypes[] = { void cli_connected(int result, int sock, void* userdata, const char *errstring) { - if (result == DROPBEAR_FAILURE) - { + struct sshsession *myses = userdata; + if (result == DROPBEAR_FAILURE) { dropbear_exit("Connect failed: %s", errstring); } - ses.sock_in = ses.sock_out = sock; + myses->sock_in = myses->sock_out = sock; update_channel_prio(); } |