summaryrefslogtreecommitdiff
path: root/tcp-accept.c
diff options
context:
space:
mode:
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