diff options
author | Damien Miller <djm@mindrot.org> | 2009-09-09 11:07:28 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2009-09-09 11:07:28 +1000 |
commit | e5d5a17fe16b5bb22259cb84ef13cd47e60d77d7 (patch) | |
tree | 7ab8afd7716986a88153485645b363e9a89ea469 /serverloop.c | |
parent | dad48e7a96385f8a1bdadd9196e00cefa2a9b702 (diff) |
- (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@
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/serverloop.c b/serverloop.c index d8cb54bc7..8be01c5c3 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -1124,7 +1124,8 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) | |||
1124 | no_port_forwarding_flag || | 1124 | no_port_forwarding_flag || |
1125 | (!want_reply && listen_port == 0) | 1125 | (!want_reply && listen_port == 0) |
1126 | #ifndef NO_IPPORT_RESERVED_CONCEPT | 1126 | #ifndef NO_IPPORT_RESERVED_CONCEPT |
1127 | || (listen_port < IPPORT_RESERVED && pw->pw_uid != 0) | 1127 | || (listen_port != 0 && listen_port < IPPORT_RESERVED && |
1128 | pw->pw_uid != 0) | ||
1128 | #endif | 1129 | #endif |
1129 | ) { | 1130 | ) { |
1130 | success = 0; | 1131 | success = 0; |