]> andersk Git - openssh.git/blobdiff - serverloop.c
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / serverloop.c
index d8cb54bc798afa3c0072eed4ab41dbdb5865f3ec..8be01c5c37c4250aab5c855f28f3ac7d51c00b51 100644 (file)
@@ -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;
This page took 0.027903 seconds and 4 git commands to generate.