diff options
author | Matt Johnston <matt@ucc.asn.au> | 2016-03-10 21:37:35 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-10 21:37:35 +0800 |
commit | a991d3b56bdd2750c772cb48bc1b932ed1714ad3 (patch) | |
tree | d595af33e4b675dd7b229ed0922ac355413b38b4 /tcp-accept.c | |
parent | 26a1a0a3bc4420e57334d3ecc827f14ffcb9f24a (diff) | |
parent | a84ce21aece29167f3312c127912404f6e486146 (diff) |
merge github master
Diffstat (limited to 'tcp-accept.c')
-rw-r--r-- | tcp-accept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp-accept.c b/tcp-accept.c index 4456920..f1f51a7 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -121,7 +121,7 @@ int listen_tcpfwd(struct TCPListener* tcpinfo) { TRACE(("enter listen_tcpfwd")) /* first we try to bind, so don't need to do so much cleanup on failure */ - snprintf(portstring, sizeof(portstring), "%d", tcpinfo->listenport); + snprintf(portstring, sizeof(portstring), "%u", tcpinfo->listenport); nsocks = dropbear_listen(tcpinfo->listenaddr, portstring, socks, DROPBEAR_MAX_SOCKS, &errstring, &ses.maxfd); |