diff cli-tcpfwd.c @ 108:10f4d3319780

- 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
author Matt Johnston <matt@ucc.asn.au>
date Thu, 26 Aug 2004 13:16:40 +0000
parents e3adf4cf5465
children 8c2b3506f112
line wrap: on
line diff
--- a/cli-tcpfwd.c	Tue Aug 24 18:12:18 2004 +0000
+++ b/cli-tcpfwd.c	Thu Aug 26 13:16:40 2004 +0000
@@ -89,7 +89,7 @@
 				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;