Mercurial > dropbear
diff cli-tcpfwd.c @ 219:654bc8327787
merge of 9522146cb07d4576f161fc4567c2c2fbd6f61fbb
and b11630c15bc4d0649dba51c3572cac6f44e0ab0e
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 08 Jul 2005 13:28:03 +0000 |
parents | ca55377e4f7e |
children | 84925eceeb13 |
line wrap: on
line diff
--- a/cli-tcpfwd.c Fri Jul 08 13:27:28 2005 +0000 +++ b/cli-tcpfwd.c Fri Jul 08 13:28:03 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;