comparison svr-tcpfwd.c @ 1239:00d7fc7b112b

Merge pull request #21 from Chocobo1/fix Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Wed, 20 Jan 2016 21:24:36 +0800
parents 888e3d17e962
children 52a456a3add0
comparison
equal deleted inserted replaced
1228:f7f2c3714269 1239:00d7fc7b112b
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;