From 5f41f030e2feb5295657285aa8c6602c7810bc4b Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 8 Apr 2016 21:14:13 +1000 Subject: 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. --- serverloop.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'serverloop.c') diff --git a/serverloop.c b/serverloop.c index f9e3e5d1..3563e5d4 100644 --- a/serverloop.c +++ b/serverloop.c @@ -1243,12 +1243,9 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) /* check permissions */ if ((options.allow_tcp_forwarding & FORWARD_REMOTE) == 0 || no_port_forwarding_flag || - (!want_reply && fwd.listen_port == 0) -#ifndef NO_IPPORT_RESERVED_CONCEPT - || (fwd.listen_port != 0 && fwd.listen_port < IPPORT_RESERVED && - pw->pw_uid != 0) -#endif - ) { + (!want_reply && fwd.listen_port == 0) || + (fwd.listen_port != 0 && fwd.listen_port < IPPORT_RESERVED && + pw->pw_uid != 0)) { success = 0; packet_send_debug("Server has disabled port forwarding."); } else { -- cgit v1.2.3