summaryrefslogtreecommitdiffhomepage
path: root/cli-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-09-01 16:38:26 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-09-01 16:38:26 +0000
commitf88bed7a30d4c327b42dcd28ce7642ba74dfe592 (patch)
tree2ed69d42fbba50d167daf6e5142edb0980386d8e /cli-main.c
parentccd02552ddf0fd0b7bfcc29d8c5eb38dd459c465 (diff)
Rearrange getaddrstring() etc
--HG-- extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/cli-main.c b/cli-main.c
index e7ddaa8..b1a0053 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -45,8 +45,6 @@ int main(int argc, char ** argv) {
int sock_in, sock_out;
char* error = NULL;
- char* hostandport;
- int len;
_dropbear_exit = cli_dropbear_exit;
_dropbear_log = cli_dropbear_log;
@@ -78,14 +76,7 @@ int main(int argc, char ** argv) {
dropbear_exit("%s", error);
}
- /* Set up the host:port log */
- len = strlen(cli_opts.remotehost);
- len += 10; /* 16 bit port and leeway*/
- hostandport = (char*)m_malloc(len);
- snprintf(hostandport, len, "%s:%s",
- cli_opts.remotehost, cli_opts.remoteport);
-
- cli_session(sock_in, sock_out, hostandport);
+ cli_session(sock_in, sock_out);
/* not reached */
return -1;