diff svr-tcpfwd.c @ 1022:4121ca987e6a

connect_remote() is now always non-blocking
author Matt Johnston <matt@ucc.asn.au>
date Sat, 14 Feb 2015 09:56:11 +0800
parents 5daedffd0769
children 02baa0b334e8
line wrap: on
line diff
--- a/svr-tcpfwd.c	Fri Feb 13 23:47:53 2015 +0800
+++ b/svr-tcpfwd.c	Sat Feb 14 09:56:11 2015 +0800
@@ -270,7 +270,7 @@
 	}
 
 	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"))