diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-04-08 21:14:13 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-04-08 21:21:27 +1000 |
commit | 5f41f030e2feb5295657285aa8c6602c7810bc4b (patch) | |
tree | 734cac54186b893082a675a1b8a13db410cd8f33 /serverloop.c | |
parent | 34a01b2cf737d946ddb140618e28c3048ab7a229 (diff) |
Remove NO_IPPORT_RESERVED_CONCEPT
Replace by defining IPPORT_RESERVED to zero on Cygwin, which should have
the same effect without causing problems syncing patches with OpenBSD.
Resync the two affected functions with OpenBSD. ok djm, sanity checked
by Corinna.
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/serverloop.c b/serverloop.c index f9e3e5d14..3563e5d42 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -1243,12 +1243,9 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) | |||
1243 | /* check permissions */ | 1243 | /* check permissions */ |
1244 | if ((options.allow_tcp_forwarding & FORWARD_REMOTE) == 0 || | 1244 | if ((options.allow_tcp_forwarding & FORWARD_REMOTE) == 0 || |
1245 | no_port_forwarding_flag || | 1245 | no_port_forwarding_flag || |
1246 | (!want_reply && fwd.listen_port == 0) | 1246 | (!want_reply && fwd.listen_port == 0) || |
1247 | #ifndef NO_IPPORT_RESERVED_CONCEPT | 1247 | (fwd.listen_port != 0 && fwd.listen_port < IPPORT_RESERVED && |
1248 | || (fwd.listen_port != 0 && fwd.listen_port < IPPORT_RESERVED && | 1248 | pw->pw_uid != 0)) { |
1249 | pw->pw_uid != 0) | ||
1250 | #endif | ||
1251 | ) { | ||
1252 | success = 0; | 1249 | success = 0; |
1253 | packet_send_debug("Server has disabled port forwarding."); | 1250 | packet_send_debug("Server has disabled port forwarding."); |
1254 | } else { | 1251 | } else { |