# HG changeset patch # User Matt Johnston # Date 1302183550 0 # Node ID 79d48028457c1909104b24a09a85a97af6967b40 # Parent 35d27c1d0ee7b3bf6e45b1f4c17a6680e931d40f Fix crash when remote forwarding was requested diff -r 35d27c1d0ee7 -r 79d48028457c svr-tcpfwd.c --- 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;