diff options
author | Matt Johnston <matt@ucc.asn.au> | 2005-04-24 10:30:33 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2005-04-24 10:30:33 +0000 |
commit | 51be125ff9b36a5e9309f9f62bf911249b04ef1a (patch) | |
tree | 7482f47a83953e50fea9f79ea5c67dcf783bd330 /cli-tcpfwd.c | |
parent | 8bc7b0ff5ae14623982068e596aa769f290cb6b7 (diff) |
- allocate correct buffer size for channel info, rather than sizeof(pointer).
--HG--
extra : convert_revision : 0f2848d140f76a1dabbe5930e9b0a5d4f282f90b
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 aa5b720..300a2fa 100644 --- a/cli-tcpfwd.c +++ b/cli-tcpfwd.c @@ -94,7 +94,7 @@ static int cli_localtcp(unsigned int listenport, const char* remoteaddr, 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; |