From 2b891f5eb3c3070ed3ae260782371ccbf4e373f1 Mon Sep 17 00:00:00 2001 From: Matt Johnston <matt@ucc.asn.au> Date: Tue, 16 May 2017 23:04:57 +0800 Subject: [PATCH] listenaddr must be malloced --- svr-tcpfwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c index 1c8d3539..fdc762b7 100644 --- a/svr-tcpfwd.c +++ b/svr-tcpfwd.c @@ -199,7 +199,7 @@ static int svr_remotetcpreq() { } else { - tcpinfo->listenaddr = request_addr; + tcpinfo->listenaddr = m_strdup(request_addr); } ret = listen_tcpfwd(tcpinfo); -- GitLab