# HG changeset patch # User Matt Johnston # Date 1114338633 0 # Node ID ca55377e4f7e5e2c8896f8b18a37c820b1986731 # Parent 5162f4e4021cccaeb71d069a269aa91d937448ad - allocate correct buffer size for channel info, rather than sizeof(pointer). diff -r 5162f4e4021c -r ca55377e4f7e cli-tcpfwd.c --- a/cli-tcpfwd.c Fri Apr 22 14:52:27 2005 +0000 +++ b/cli-tcpfwd.c Sun Apr 24 10:30:33 2005 +0000 @@ -94,7 +94,7 @@ 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;