comparison svr-tcpfwd.c @ 1237:888e3d17e962

Fix print format specifier
author Chocobo1 <Chocobo1@users.noreply.github.com>
date Tue, 05 Jan 2016 12:32:33 +0800
parents aaf576b27a10
children 52a456a3add0
comparison
equal deleted inserted replaced
1236:a0062a354a80 1237:888e3d17e962
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;