summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-26 23:12:02 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-26 23:12:02 +0800
commit96e1a7e6da25d1aabadd954aa8895a3878e9ec8d (patch)
treeaaff6b898b0fc14a351dcb4acadc4a217f7b873c
parent3996e93a2045b68cbec6d645e7a166358dac95f7 (diff)
avoid warning about port
-rw-r--r--svr-tcpfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c
index 83f233d..cf6e07b 100644
--- a/svr-tcpfwd.c
+++ b/svr-tcpfwd.c
@@ -86,7 +86,7 @@ void recv_msg_global_request_remotetcp() {
}
if (strcmp("tcpip-forward", reqname) == 0) {
- int allocated_listen_port;
+ int allocated_listen_port = 0;
ret = svr_remotetcpreq(&allocated_listen_port);
/* client expects-port-number-to-make-use-of-server-allocated-ports */
if (DROPBEAR_SUCCESS == ret) {