diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-12 13:48:42 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-12 13:48:42 +0000 |
commit | 935e9c32f4d95278bf951024fda447553ac77db5 (patch) | |
tree | 4908aee50c5555c9964030148934641fba2c1a51 /tcp-accept.c | |
parent | 09d419bc31dc598240ed03cdf9168d7d0ae6a98f (diff) | |
download | dropbear-935e9c32f4d95278bf951024fda447553ac77db5.tar.gz |
TCP forwarding works.
Diffstat (limited to 'tcp-accept.c')
-rw-r--r-- | tcp-accept.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp-accept.c b/tcp-accept.c index 8f8b5c0..6b82914 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -1,6 +1,6 @@ #include "includes.h" #include "ssh.h" -#include "tcp-accept.h" +#include "tcpfwd.h" #include "dbutil.h" #include "session.h" #include "buffer.h" @@ -67,7 +67,7 @@ int listen_tcpfwd(struct TCPListener* tcpinfo) { TRACE(("enter listen_tcpfwd")); /* first we try to bind, so don't need to do so much cleanup on failure */ - snprintf(portstring, sizeof(portstring), "%d", tcpinfo->sendport); + snprintf(portstring, sizeof(portstring), "%d", tcpinfo->listenport); /* XXX Note: we're just listening on localhost, no matter what they tell * us. If someone wants to make it listen otherways, then change |