Mercurial > dropbear
comparison svr-tcpfwd.c @ 1334:c8114a48837c
listenaddr must be malloced
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 16 May 2017 23:04:57 +0800 |
parents | 9169e4e7cbee |
children | 8747c2b19152 |
comparison
equal
deleted
inserted
replaced
1333:6fafb500de88 | 1334:c8114a48837c |
---|---|
197 /* NULL means "localhost only" */ | 197 /* NULL means "localhost only" */ |
198 tcpinfo->listenaddr = NULL; | 198 tcpinfo->listenaddr = NULL; |
199 } | 199 } |
200 else | 200 else |
201 { | 201 { |
202 tcpinfo->listenaddr = request_addr; | 202 tcpinfo->listenaddr = m_strdup(request_addr); |
203 } | 203 } |
204 | 204 |
205 ret = listen_tcpfwd(tcpinfo); | 205 ret = listen_tcpfwd(tcpinfo); |
206 | 206 |
207 out: | 207 out: |