]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use | with flags, not +.
authorNick Mathewson <nickm@torproject.org>
Wed, 13 May 2009 20:43:51 +0000 (16:43 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 13 May 2009 20:45:59 +0000 (16:45 -0400)
src/or/config.c

index 7c1b60dcf4db2c3c53c63e99f36b240ccd746fff..b696b23a4cd2acf0115c3069b8a830b40c73eafc 100644 (file)
@@ -3240,8 +3240,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
 
   if ((options->BridgeRelay
         || options->_PublishServerDescriptor & BRIDGE_AUTHORITY)
-      && options->_PublishServerDescriptor
-        & (V1_AUTHORITY + V2_AUTHORITY + V3_AUTHORITY)) {
+      && (options->_PublishServerDescriptor
+          & (V1_AUTHORITY|V2_AUTHORITY|V3_AUTHORITY))) {
     REJECT("Bridges are not supposed to publish router descriptors to the "
            "directory authorities. Please correct your "
            "PublishServerDescriptor line.");