comparison cli-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
252 origaddr, origport); 252 origaddr, origport);
253 goto out; 253 goto out;
254 } 254 }
255 255
256 snprintf(portstring, sizeof(portstring), "%d", fwd->connectport); 256 snprintf(portstring, sizeof(portstring), "%d", fwd->connectport);
257 sock = connect_remote(fwd->connectaddr, portstring, 1, NULL); 257 sock = connect_remote(fwd->connectaddr, portstring, NULL);
258 if (sock < 0) { 258 if (sock < 0) {
259 TRACE(("leave newtcpdirect: sock failed")) 259 TRACE(("leave newtcpdirect: sock failed"))
260 err = SSH_OPEN_CONNECT_FAILED; 260 err = SSH_OPEN_CONNECT_FAILED;
261 goto out; 261 goto out;
262 } 262 }