]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove a needless if (1)
authorArlo Breault <arlolra@gmail.com>
Tue, 23 Sep 2014 16:14:41 +0000 (12:14 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 23 Sep 2014 16:14:41 +0000 (12:14 -0400)
src/or/directory.c

index f8c4fbda8ca19351a5b3ec57b00522ad368f4b25..616f593a1768e871e12db8f0fc1ff506252cf10d 100644 (file)
@@ -527,14 +527,11 @@ MOCK_IMPL(void, directory_get_from_dirserver, (uint8_t dir_purpose,
     }
   } else { /* get_via_tor */
     /* Never use fascistfirewall; we're going via Tor. */
-    if (1) {
-      /* anybody with a non-zero dirport will do. Disregard firewalls. */
-      pds_flags |= PDS_IGNORE_FASCISTFIREWALL;
-      rs = router_pick_directory_server(type, pds_flags);
-      /* If we have any hope of building an indirect conn, we know some router
-       * descriptors.  If (rs==NULL), we can't build circuits anyway, so
-       * there's no point in falling back to the authorities in this case. */
-    }
+    pds_flags |= PDS_IGNORE_FASCISTFIREWALL;
+    rs = router_pick_directory_server(type, pds_flags);
+    /* If we have any hope of building an indirect conn, we know some router
+     * descriptors.  If (rs==NULL), we can't build circuits anyway, so
+     * there's no point in falling back to the authorities in this case. */
   }
 
   if (rs) {