diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-26 13:16:40 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-26 13:16:40 +0000 |
commit | 51a74b47995cfe24ef190b7e254f768eb92735f5 (patch) | |
tree | 30a6f39236a025b53a33c3893c96e1669e5b7563 /cli-tcpfwd.c | |
parent | 2dcd6b22d94755a4f328885f469908c441ac8534 (diff) |
- added circular buffering for channels
- added stderr support for the client
- cleaned up a bunch of "unused" warnings, duplicated header definitions
- added exit-status support for the client
--HG--
extra : convert_revision : 5bdf806d8b440c87f7235414662f4189195618f4
Diffstat (limited to 'cli-tcpfwd.c')
-rw-r--r-- | cli-tcpfwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c index 747d8db..4dbef01 100644 --- a/cli-tcpfwd.c +++ b/cli-tcpfwd.c @@ -89,7 +89,7 @@ static int cli_localtcp(unsigned int listenport, const char* remoteaddr, remoteport)); tcpinfo = (struct TCPListener*)m_malloc(sizeof(struct TCPListener*)); - tcpinfo->sendaddr = remoteaddr; + tcpinfo->sendaddr = m_strdup(remoteaddr); tcpinfo->sendport = remoteport; tcpinfo->listenport = listenport; tcpinfo->chantype = &cli_chan_tcplocal; |