The unified diff between revisions [d0935a5d..] and [e0686662..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'cli-tcpfwd.c'

#
#
# patch "cli-tcpfwd.c"
#  from [7158c409b3543e5242181549f553aa8feef45e34]
#    to [d8d52da1d269d157d91e9731508a3b8beba444c2]
#
============================================================
--- cli-tcpfwd.c	7158c409b3543e5242181549f553aa8feef45e34
+++ cli-tcpfwd.c	d8d52da1d269d157d91e9731508a3b8beba444c2
@@ -94,7 +94,7 @@ static int cli_localtcp(unsigned int lis
 	TRACE(("enter cli_localtcp: %d %s %d", listenport, remoteaddr,
 				remoteport));

-	tcpinfo = (struct TCPListener*)m_malloc(sizeof(struct TCPListener*));
+	tcpinfo = (struct TCPListener*)m_malloc(sizeof(struct TCPListener));
 	tcpinfo->sendaddr = m_strdup(remoteaddr);
 	tcpinfo->sendport = remoteport;
 	tcpinfo->listenport = listenport;