summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/readconf.c b/readconf.c
index c692f7dd2..d63e5961d 100644
--- a/readconf.c
+++ b/readconf.c
@@ -294,14 +294,12 @@ void
294add_local_forward(Options *options, const struct Forward *newfwd) 294add_local_forward(Options *options, const struct Forward *newfwd)
295{ 295{
296 struct Forward *fwd; 296 struct Forward *fwd;
297 int i;
298#ifndef NO_IPPORT_RESERVED_CONCEPT
299 extern uid_t original_real_uid; 297 extern uid_t original_real_uid;
298 int i;
300 299
301 if (newfwd->listen_port < IPPORT_RESERVED && original_real_uid != 0 && 300 if (newfwd->listen_port < IPPORT_RESERVED && original_real_uid != 0 &&
302 newfwd->listen_path == NULL) 301 newfwd->listen_path == NULL)
303 fatal("Privileged ports can only be forwarded by root."); 302 fatal("Privileged ports can only be forwarded by root.");
304#endif
305 /* Don't add duplicates */ 303 /* Don't add duplicates */
306 for (i = 0; i < options->num_local_forwards; i++) { 304 for (i = 0; i < options->num_local_forwards; i++) {
307 if (forward_equals(newfwd, options->local_forwards + i)) 305 if (forward_equals(newfwd, options->local_forwards + i))