comparison svr-tcpfwd.c @ 1247:428d83f2e5db

merge github master
author Matt Johnston <matt@ucc.asn.au>
date Thu, 10 Mar 2016 21:37:35 +0800
parents 888e3d17e962
children 52a456a3add0
comparison
equal deleted inserted replaced
1235:11f645c3715b 1247:428d83f2e5db
267 if (origport > 65535 || destport > 65535) { 267 if (origport > 65535 || destport > 65535) {
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), "%u", destport);
273 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel); 273 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel);
274 274
275 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; 275 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
276 276
277 err = SSH_OPEN_IN_PROGRESS; 277 err = SSH_OPEN_IN_PROGRESS;