comparison 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
comparison
equal deleted inserted replaced
1544:d1a8a05216ff 1547:2c902644036d
84 TRACE(("name len is wrong: %d", namelen)) 84 TRACE(("name len is wrong: %d", namelen))
85 goto out; 85 goto out;
86 } 86 }
87 87
88 if (strcmp("tcpip-forward", reqname) == 0) { 88 if (strcmp("tcpip-forward", reqname) == 0) {
89 int allocated_listen_port; 89 int allocated_listen_port = 0;
90 ret = svr_remotetcpreq(&allocated_listen_port); 90 ret = svr_remotetcpreq(&allocated_listen_port);
91 /* client expects-port-number-to-make-use-of-server-allocated-ports */ 91 /* client expects-port-number-to-make-use-of-server-allocated-ports */
92 if (DROPBEAR_SUCCESS == ret) { 92 if (DROPBEAR_SUCCESS == ret) {
93 CHECKCLEARTOWRITE(); 93 CHECKCLEARTOWRITE();
94 buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_SUCCESS); 94 buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_SUCCESS);