listenaddr must be malloced

This commit is contained in:
Matt Johnston 2017-05-16 23:04:57 +08:00
parent 01bde8ff94
commit 2b891f5eb3

View File

@ -199,7 +199,7 @@ static int svr_remotetcpreq() {
} }
else else
{ {
tcpinfo->listenaddr = request_addr; tcpinfo->listenaddr = m_strdup(request_addr);
} }
ret = listen_tcpfwd(tcpinfo); ret = listen_tcpfwd(tcpinfo);