summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c
index 134921355..912f62501 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -972,8 +972,11 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt)
972 972
973 /* check permissions */ 973 /* check permissions */
974 if (!options.allow_tcp_forwarding || 974 if (!options.allow_tcp_forwarding ||
975 no_port_forwarding_flag || 975 no_port_forwarding_flag
976 (listen_port < IPPORT_RESERVED && pw->pw_uid != 0)) { 976#ifndef NO_IPPORT_RESERVED_CONCEPT
977 || (listen_port < IPPORT_RESERVED && pw->pw_uid != 0)
978#endif
979 ) {
977 success = 0; 980 success = 0;
978 packet_send_debug("Server has disabled port forwarding."); 981 packet_send_debug("Server has disabled port forwarding.");
979 } else { 982 } else {