]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove an unneccessary FetchUselessDescriptors check in client_would_use_router
authorteor <teor2345@gmail.com>
Wed, 30 Nov 2016 00:43:04 +0000 (11:43 +1100)
committerteor <teor2345@gmail.com>
Wed, 30 Nov 2016 00:43:04 +0000 (11:43 +1100)
src/or/networkstatus.c

index 10157c6170f0cd129a9be35adcf794af6478e3bd..bfb36413ce02c92f771e26c8ed42efef50c983eb 100644 (file)
@@ -2407,9 +2407,9 @@ int
 client_would_use_router(const routerstatus_t *rs, time_t now,
                         const or_options_t *options)
 {
-  if (!rs->is_flagged_running && !options->FetchUselessDescriptors) {
+  if (!rs->is_flagged_running) {
     /* If we had this router descriptor, we wouldn't even bother using it.
-     * But, if we want to have a complete list, fetch it anyway. */
+     * (Fetching and storing depends on by we_want_to_fetch_flavor().) */
     return 0;
   }
   if (rs->published_on + options->TestingEstimatedDescriptorPropagationTime