summaryrefslogtreecommitdiffhomepage
path: root/svr-tcpfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2016-03-10 21:37:35 +0800
committerMatt Johnston <matt@ucc.asn.au>2016-03-10 21:37:35 +0800
commita991d3b56bdd2750c772cb48bc1b932ed1714ad3 (patch)
treed595af33e4b675dd7b229ed0922ac355413b38b4 /svr-tcpfwd.c
parent26a1a0a3bc4420e57334d3ecc827f14ffcb9f24a (diff)
parenta84ce21aece29167f3312c127912404f6e486146 (diff)
merge github master
Diffstat (limited to 'svr-tcpfwd.c')
-rw-r--r--svr-tcpfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c
index d2f1427..9d051bf 100644
--- a/svr-tcpfwd.c
+++ b/svr-tcpfwd.c
@@ -269,7 +269,7 @@ static int newtcpdirect(struct Channel * channel) {
goto out;
}
- snprintf(portstring, sizeof(portstring), "%d", destport);
+ snprintf(portstring, sizeof(portstring), "%u", destport);
channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel);
channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;