comparison cli-tcpfwd.c @ 1046:b8f4b7027191 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Tue, 24 Feb 2015 22:48:34 +0800
parents 4121ca987e6a
children 02baa0b334e8
comparison
equal deleted inserted replaced
1014:37c510c2ac7c 1046:b8f4b7027191
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 }