comparison cli-tcpfwd.c @ 1620:572a7aefa188 bugfix

FIx remote forward listeners
author Matt Johnston <matt@ucc.asn.au>
date Fri, 07 Sep 2018 23:02:20 +0800
parents d68d61e7056a
children 79eef94ccea9
comparison
equal deleted inserted replaced
1618:7bd7e95ad1f8 1620:572a7aefa188
133 tcpinfo->listenport = listenport; 133 tcpinfo->listenport = listenport;
134 134
135 tcpinfo->chantype = &cli_chan_tcplocal; 135 tcpinfo->chantype = &cli_chan_tcplocal;
136 tcpinfo->tcp_type = direct; 136 tcpinfo->tcp_type = direct;
137 137
138 ret = listen_tcpfwd(tcpinfo); 138 ret = listen_tcpfwd(tcpinfo, NULL);
139 139
140 if (ret == DROPBEAR_FAILURE) { 140 if (ret == DROPBEAR_FAILURE) {
141 m_free(tcpinfo); 141 m_free(tcpinfo);
142 } 142 }
143 TRACE(("leave cli_localtcp: %d", ret)) 143 TRACE(("leave cli_localtcp: %d", ret))