Mercurial > dropbear
diff svr-tcpfwd.c @ 620:79d48028457c
Fix crash when remote forwarding was requested
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 07 Apr 2011 13:39:10 +0000 |
parents | 35d27c1d0ee7 |
children | c519b78b6d1a |
line wrap: on
line diff
--- a/svr-tcpfwd.c Thu Apr 07 13:38:27 2011 +0000 +++ b/svr-tcpfwd.c Thu Apr 07 13:39:10 2011 +0000 @@ -210,8 +210,7 @@ tcpinfo->chantype = &svr_chan_tcpremote; tcpinfo->tcp_type = forwarded; - if (!opts.listen_fwd_all - || (strcmp(tcpinfo->listenaddr, "localhost") == 0) ) { + if (!opts.listen_fwd_all || (strcmp(bindaddr, "localhost") == 0) ) { // NULL means "localhost only" m_free(bindaddr); bindaddr = NULL;