diff svr-tcpfwd.c @ 1580:7f2be495dff6 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Mar 2018 15:07:09 +0800
parents 2c902644036d
children 572a7aefa188
line wrap: on
line diff
--- a/svr-tcpfwd.c	Mon Feb 26 22:43:12 2018 +0800
+++ b/svr-tcpfwd.c	Sun Mar 04 15:07:09 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) {