summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels.c b/channels.c
index c77f6b96a..4ac48a77a 100644
--- a/channels.c
+++ b/channels.c
@@ -1567,6 +1567,7 @@ channel_input_port_forward_request(int is_root, int gateway_ports)
1567 hostname = packet_get_string(NULL); 1567 hostname = packet_get_string(NULL);
1568 host_port = packet_get_int(); 1568 host_port = packet_get_int();
1569 1569
1570#ifndef HAVE_CYGWIN
1570 /* 1571 /*
1571 * Check that an unprivileged user is not trying to forward a 1572 * Check that an unprivileged user is not trying to forward a
1572 * privileged port. 1573 * privileged port.
@@ -1574,6 +1575,7 @@ channel_input_port_forward_request(int is_root, int gateway_ports)
1574 if (port < IPPORT_RESERVED && !is_root) 1575 if (port < IPPORT_RESERVED && !is_root)
1575 packet_disconnect("Requested forwarding of port %d but user is not root.", 1576 packet_disconnect("Requested forwarding of port %d but user is not root.",
1576 port); 1577 port);
1578#endif
1577 /* 1579 /*
1578 * Initiate forwarding, 1580 * Initiate forwarding,
1579 */ 1581 */