comparison 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
comparison
equal deleted inserted replaced
1021:24135c8e1d46 1022:4121ca987e6a
268 TRACE(("leave newtcpdirect: port > 65535")) 268 TRACE(("leave newtcpdirect: port > 65535"))
269 goto out; 269 goto out;
270 } 270 }
271 271
272 snprintf(portstring, sizeof(portstring), "%d", destport); 272 snprintf(portstring, sizeof(portstring), "%d", destport);
273 sock = connect_remote(desthost, portstring, 1, NULL); 273 sock = connect_remote(desthost, portstring, NULL);
274 if (sock < 0) { 274 if (sock < 0) {
275 err = SSH_OPEN_CONNECT_FAILED; 275 err = SSH_OPEN_CONNECT_FAILED;
276 TRACE(("leave newtcpdirect: sock failed")) 276 TRACE(("leave newtcpdirect: sock failed"))
277 goto out; 277 goto out;
278 } 278 }