# HG changeset patch # User Matt Johnston # Date 1494947097 -28800 # Node ID c8114a48837cf59455fae044584bda23b2ad306f # Parent 6fafb500de884acd544410ed74ad6e78089ca970 listenaddr must be malloced diff -r 6fafb500de88 -r c8114a48837c svr-tcpfwd.c --- a/svr-tcpfwd.c Sat May 13 23:43:09 2017 +0800 +++ b/svr-tcpfwd.c Tue May 16 23:04:57 2017 +0800 @@ -199,7 +199,7 @@ } else { - tcpinfo->listenaddr = request_addr; + tcpinfo->listenaddr = m_strdup(request_addr); } ret = listen_tcpfwd(tcpinfo);