summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--serverloop.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b692efad7..dcb471b53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120090908
2 - (djm) [serverloop.c] Fix test for server-assigned remote forwarding port
3 (-R 0:...); bz#1578, spotted and fix by gavin AT emf.net; ok dtucker@
4
120090901 520090901
2 - (dtucker) [configure.ac] Bug #1639: use AC_PATH_PROG to search the path for 6 - (dtucker) [configure.ac] Bug #1639: use AC_PATH_PROG to search the path for
3 krb5-config if it's not in the location specified by --with-kerberos5. 7 krb5-config if it's not in the location specified by --with-kerberos5.
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;