summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/channels.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-05-03 18:03:08 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-05-03 18:03:08 +0000
commit2252dc654f797ee5906e4b1b49fa63171edda3cf (patch)
tree9f497f7c424a13379fb642d29baa60a330e37f3b /usr.bin/ssh/channels.c
parent21013a86e57aa529031480e356a3ffc47f1472c3 (diff)
GatewayPorts for sshd, ok deraadt@
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r--usr.bin/ssh/channels.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index 942b62e2125..38e5d8d703e 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -17,7 +17,7 @@
*/
#include "includes.h"
-RCSID("$Id: channels.c,v 1.55 2000/05/02 19:33:12 markus Exp $");
+RCSID("$Id: channels.c,v 1.56 2000/05/03 18:03:06 markus Exp $");
#include "ssh.h"
#include "packet.h"
@@ -1552,7 +1552,7 @@ channel_request_remote_forwarding(u_short listen_port, const char *host_to_conne
*/
void
-channel_input_port_forward_request(int is_root)
+channel_input_port_forward_request(int is_root, int gateway_ports)
{
u_short port, host_port;
char *hostname;
@@ -1571,9 +1571,8 @@ channel_input_port_forward_request(int is_root)
port);
/*
* Initiate forwarding,
- * bind port to localhost only (gateway ports == 0).
*/
- channel_request_local_forwarding(port, hostname, host_port, 0);
+ channel_request_local_forwarding(port, hostname, host_port, gateway_ports);
/* Free the argument string. */
xfree(hostname);