]> andersk Git - openssh.git/commitdiff
- (djm) [serverloop.c] Fix test for server-assigned remote forwarding port
authordjm <djm>
Wed, 9 Sep 2009 01:07:28 +0000 (01:07 +0000)
committerdjm <djm>
Wed, 9 Sep 2009 01:07:28 +0000 (01:07 +0000)
   (-R 0:...); bz#1578, spotted and fix by gavin AT emf.net; ok dtucker@

ChangeLog
serverloop.c

index b692efad710fee2f2ae1d5063a25405cad8f9c77..dcb471b530494778f6fdbeeb9d0bf40c5d835fc3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20090908
+ - (djm) [serverloop.c] Fix test for server-assigned remote forwarding port
+   (-R 0:...); bz#1578, spotted and fix by gavin AT emf.net; ok dtucker@
+
 20090901
  - (dtucker) [configure.ac] Bug #1639: use AC_PATH_PROG to search the path for
    krb5-config if it's not in the location specified by --with-kerberos5.
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.064716 seconds and 5 git commands to generate.