summaryrefslogtreecommitdiff
path: root/svr-tcpfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2021-10-11 15:42:14 +0800
committerMatt Johnston <matt@ucc.asn.au>2021-10-11 15:42:14 +0800
commit87ff9a1a5639d5ceab2c9eb474a31126c50a3033 (patch)
treeba4ff7a42c56f214d648365cfb3f6e789156c6be /svr-tcpfwd.c
parent03b9152cc83671c11c0e313d07ba1ee7e4ccaa6e (diff)
downloaddropbear-87ff9a1a5639d5ceab2c9eb474a31126c50a3033.tar.gz
Replace ChanType.sepfds with Channel.bidir_fd
This handles the case where a svrchansess has separate FDs for nopty, but a single FD for pty mode. The use of sepfds was also previously incorrect for X11 and agent forwarding
Diffstat (limited to 'svr-tcpfwd.c')
-rw-r--r--svr-tcpfwd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c
index f3bab25..9c1edd4 100644
--- a/svr-tcpfwd.c
+++ b/svr-tcpfwd.c
@@ -59,7 +59,6 @@ static int newtcpdirect(struct Channel * channel);
#if DROPBEAR_SVR_REMOTETCPFWD
static const struct ChanType svr_chan_tcpremote = {
- 1, /* sepfds */
"forwarded-tcpip",
tcp_prio_inithandler,
NULL,
@@ -241,7 +240,6 @@ out:
#if DROPBEAR_SVR_LOCALTCPFWD
const struct ChanType svr_chan_tcpdirect = {
- 1, /* sepfds */
"direct-tcpip",
newtcpdirect, /* init */
NULL, /* checkclose */