summaryrefslogtreecommitdiffhomepage
path: root/tcp-accept.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-12 13:48:42 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-12 13:48:42 +0000
commite1057cd47720a03512e3ed0d5bbc2d5296b94fc2 (patch)
tree4908aee50c5555c9964030148934641fba2c1a51 /tcp-accept.c
parent453261a0420a1e4ee5d0feb3df6806c39ae3e0ff (diff)
TCP forwarding works.
--HG-- extra : convert_revision : 57dfb36d0d482ad84f31506904eb67863bd303ab
Diffstat (limited to 'tcp-accept.c')
-rw-r--r--tcp-accept.c4
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