mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
Fix crash when remote forwarding was requested
--HG-- extra : convert_revision : 5c0a794976692a54ec36111291179020e2ae6c1e
This commit is contained in:
parent
665b768cef
commit
b9e21e2367
@ -210,8 +210,7 @@ static int svr_remotetcpreq() {
|
|||||||
tcpinfo->chantype = &svr_chan_tcpremote;
|
tcpinfo->chantype = &svr_chan_tcpremote;
|
||||||
tcpinfo->tcp_type = forwarded;
|
tcpinfo->tcp_type = forwarded;
|
||||||
|
|
||||||
if (!opts.listen_fwd_all
|
if (!opts.listen_fwd_all || (strcmp(bindaddr, "localhost") == 0) ) {
|
||||||
|| (strcmp(tcpinfo->listenaddr, "localhost") == 0) ) {
|
|
||||||
// NULL means "localhost only"
|
// NULL means "localhost only"
|
||||||
m_free(bindaddr);
|
m_free(bindaddr);
|
||||||
bindaddr = NULL;
|
bindaddr = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user