comparison cli-tcpfwd.c @ 259:c049490e43fe

* fix -L forwarding on the client, broke last rev
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Dec 2005 16:51:55 +0000
parents 306499676384
children 805e557fdff7
comparison
equal deleted inserted replaced
258:306499676384 259:c049490e43fe
105 tcpinfo->listenaddr = m_strdup("localhost"); 105 tcpinfo->listenaddr = m_strdup("localhost");
106 } 106 }
107 tcpinfo->listenport = listenport; 107 tcpinfo->listenport = listenport;
108 108
109 tcpinfo->chantype = &cli_chan_tcplocal; 109 tcpinfo->chantype = &cli_chan_tcplocal;
110 tcpinfo->tcp_type = direct;
110 111
111 ret = listen_tcpfwd(tcpinfo); 112 ret = listen_tcpfwd(tcpinfo);
112 113
113 if (ret == DROPBEAR_FAILURE) { 114 if (ret == DROPBEAR_FAILURE) {
114 m_free(tcpinfo); 115 m_free(tcpinfo);