summaryrefslogtreecommitdiffhomepage
path: root/cli-tcpfwd.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
commit364a53577eb33f20bed877fc5d4a54de829707d8 (patch)
tree3006ce1d1a77e50fbb679cd4a8a454423f66d350 /cli-tcpfwd.c
parent1b1997bf2da9322c526ec1da4358aae94f7de06e (diff)
Move generic network routines to netio.c
--HG-- branch : fastopen
Diffstat (limited to 'cli-tcpfwd.c')
-rw-r--r--cli-tcpfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c
index 3e87ffd..ec65f41 100644
--- a/cli-tcpfwd.c
+++ b/cli-tcpfwd.c
@@ -30,6 +30,7 @@
#include "runopts.h"
#include "session.h"
#include "ssh.h"
+#include "netio.h"
#ifdef ENABLE_CLI_REMOTETCPFWD
static int newtcpforwarded(struct Channel * channel);
@@ -215,7 +216,6 @@ static int newtcpforwarded(struct Channel * channel) {
m_list_elem * iter = NULL;
struct TCPFwdEntry *fwd;
char portstring[NI_MAXSERV];
- int sock;
int err = SSH_OPEN_ADMINISTRATIVELY_PROHIBITED;
origaddr = buf_getstring(ses.payload, NULL);