diff svr-tcpfwd.c @ 1547:2c902644036d

avoid warning about port
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Feb 2018 23:12:02 +0800
parents bb55dffab5ba
children 572a7aefa188
line wrap: on
line diff
--- a/svr-tcpfwd.c	Mon Feb 26 22:42:53 2018 +0800
+++ b/svr-tcpfwd.c	Mon Feb 26 23:12:02 2018 +0800
@@ -86,7 +86,7 @@
 	}
 
 	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) {