2010-03-26 16:29:14 +01:00
|
|
|
Index: channels.c
|
|
|
|
===================================================================
|
|
|
|
--- channels.c.orig
|
2008-12-03 16:31:18 +01:00
|
|
|
+++ channels.c
|
2010-03-26 16:29:14 +01:00
|
|
|
@@ -2625,6 +2625,9 @@ channel_setup_fwd_listener(int type, con
|
2008-12-03 16:31:18 +01:00
|
|
|
char ntop[NI_MAXHOST], strport[NI_MAXSERV];
|
2009-03-03 22:42:45 +01:00
|
|
|
in_port_t *lport_p;
|
2008-12-03 16:31:18 +01:00
|
|
|
|
|
|
|
+ if (num_adm_permitted_opens >= SSH_MAX_FORWARDS_PER_DIRECTION)
|
|
|
|
+ fatal("channel_setup_fwd_listener: too many forwards");
|
|
|
|
+
|
|
|
|
host = (type == SSH_CHANNEL_RPORT_LISTENER) ?
|
|
|
|
listen_addr : host_to_connect;
|
|
|
|
is_client = (type == SSH_CHANNEL_PORT_LISTENER);
|