summaryrefslogtreecommitdiffhomepage
path: root/cli-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 /cli-tcpfwd.c
parent2c35f1c8fd7ded63a1e0a14fce01032697dac352 (diff)
connect_remote() is now always non-blocking
Diffstat (limited to 'cli-tcpfwd.c')
-rw-r--r--cli-tcpfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c
index fa61d13..3894044 100644
--- a/cli-tcpfwd.c
+++ b/cli-tcpfwd.c
@@ -254,7 +254,7 @@ static int newtcpforwarded(struct Channel * channel) {
}
snprintf(portstring, sizeof(portstring), "%d", fwd->connectport);
- sock = connect_remote(fwd->connectaddr, portstring, 1, NULL);
+ sock = connect_remote(fwd->connectaddr, portstring, NULL);
if (sock < 0) {
TRACE(("leave newtcpdirect: sock failed"))
err = SSH_OPEN_CONNECT_FAILED;