summaryrefslogtreecommitdiff
path: root/cli-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-20 23:16:38 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-20 23:16:38 +0800
commitc7b7e89f7568626e4f2ce59b24636df31667fa64 (patch)
tree3bcaecf65e2afa1cbe41d70824fb93dc080868ee /cli-main.c
parentdef06d6af9403251e6f4cd1ee3700b8906d42ed5 (diff)
downloaddropbear-c7b7e89f7568626e4f2ce59b24636df31667fa64.tar.gz
Move generic network routines to netio.c
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-main.c b/cli-main.c
index 80ff557..ff2b30f 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -30,6 +30,7 @@
#include "session.h"
#include "dbrandom.h"
#include "crypto_desc.h"
+#include "netio.h"
static void cli_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN;
static void cli_dropbear_log(int priority, const char* format, va_list param);
@@ -46,7 +47,6 @@ int main(int argc, char ** argv) {
#endif
int sock_in, sock_out;
- char* error = NULL;
struct dropbear_progress_connection *progress = NULL;
_dropbear_exit = cli_dropbear_exit;
@@ -73,7 +73,7 @@ int main(int argc, char ** argv) {
} else
#endif
{
- progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL);
+ progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, &ses);
sock_in = sock_out = -1;
}