X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/d0137ef83eaef1fbdd9745cfb3c75ea68aa0fa12..HEAD:/serverloop.c diff --git a/serverloop.c b/serverloop.c index d8cb54bc..8be01c5c 100644 --- a/serverloop.c +++ b/serverloop.c @@ -1124,7 +1124,8 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) no_port_forwarding_flag || (!want_reply && listen_port == 0) #ifndef NO_IPPORT_RESERVED_CONCEPT - || (listen_port < IPPORT_RESERVED && pw->pw_uid != 0) + || (listen_port != 0 && listen_port < IPPORT_RESERVED && + pw->pw_uid != 0) #endif ) { success = 0;