summaryrefslogtreecommitdiffhomepage
path: root/cli-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-18 22:46:15 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-18 22:46:15 +0800
commit755c1458f0197d4da1dcb86ac832a8ffa8d02b27 (patch)
treecebef8bd66e3998f615939be9e6a4e3f78f3b255 /cli-main.c
parent8795d733ecd27ef7aa1cc5d9e68b5ecb5a90f64e (diff)
async connections working
--HG-- branch : fastopen
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cli-main.c b/cli-main.c
index a956721..6834d1d 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -72,12 +72,8 @@ int main(int argc, char ** argv) {
} else
#endif
{
- int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, &error);
- sock_in = sock_out = sock;
- }
-
- if (sock_in < 0) {
- dropbear_exit("%s", error);
+ connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL);
+ sock_in = sock_out = -1;
}
cli_session(sock_in, sock_out);