[or-cvs] [tor/master] Bug #928: Disallow BridgeRelay 1 and ORPort 0 configuration

nickm at torproject.org nickm at torproject.org
Mon Aug 2 16:01:04 UTC 2010


Author: Chris Ball <chris at printf.net>
Date: Sat, 31 Jul 2010 19:42:29 -0400
Subject: Bug #928: Disallow BridgeRelay 1 and ORPort 0 configuration
Commit: 9ffa9779819bfba33a6a9fdd888aeb52c99d00d9

---
 changes/bug928  |    4 ++++
 src/or/config.c |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)
 create mode 100644 changes/bug928

diff --git a/changes/bug928 b/changes/bug928
new file mode 100644
index 0000000..4f9fc5f
--- /dev/null
+++ b/changes/bug928
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Disallow BridgeRelay 1 and ORPort 0 configuration.
+      Bugfix in 0.2.0.13-alpha, closes bug 928.
+
diff --git a/src/or/config.c b/src/or/config.c
index fc84556..20ae9f0 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3590,6 +3590,9 @@ options_validate(or_options_t *old_options, or_options_t *options,
         }
     });
 
+  if (options->BridgeRelay == 1 && options->ORPort == 0)
+      REJECT("BridgeRelay is 1, ORPort is 0. This is an invalid combination.");
+
   return 0;
 #undef REJECT
 #undef COMPLAIN
-- 
1.7.1



More information about the tor-commits mailing list