summaryrefslogtreecommitdiffhomepage
path: root/svr-tcpfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-14 09:56:11 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-14 09:56:11 +0800
commit9abcc7b909b6ff0f173405e73dc7c0c3d093e44a (patch)
treea6b29309918fa59d93491dc0fa7c396e12e65c1d /svr-tcpfwd.c
parent2c35f1c8fd7ded63a1e0a14fce01032697dac352 (diff)
connect_remote() is now always non-blocking
Diffstat (limited to 'svr-tcpfwd.c')
-rw-r--r--svr-tcpfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c
index e5f219e..f2c4b93 100644
--- a/svr-tcpfwd.c
+++ b/svr-tcpfwd.c
@@ -270,7 +270,7 @@ static int newtcpdirect(struct Channel * channel) {
}
snprintf(portstring, sizeof(portstring), "%d", destport);
- sock = connect_remote(desthost, portstring, 1, NULL);
+ sock = connect_remote(desthost, portstring, NULL);
if (sock < 0) {
err = SSH_OPEN_CONNECT_FAILED;
TRACE(("leave newtcpdirect: sock failed"))