Browse Source

Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2

Nick Mathewson 13 years ago
parent
commit
9ad083d573
2 changed files with 7 additions and 1 deletions
  1. 5 0
      changes/bug2629
  2. 2 1
      src/or/circuitbuild.c

+ 5 - 0
changes/bug2629

@@ -0,0 +1,5 @@
+  o Minor bugfixes
+    - Fix a crash bug that could occur occasionally when a client was
+      configured with a large number of bridges.  Fixes bug 2629; bugfix
+      on 0.2.1.2-alpha.  Bugfix by trac user "shitlei".
+

+ 2 - 1
src/or/circuitbuild.c

@@ -4728,7 +4728,8 @@ any_pending_bridge_descriptor_fetches(void)
         conn->purpose == DIR_PURPOSE_FETCH_SERVERDESC &&
         TO_DIR_CONN(conn)->router_purpose == ROUTER_PURPOSE_BRIDGE &&
         !conn->marked_for_close &&
-        conn->linked && !conn->linked_conn->marked_for_close) {
+        conn->linked &&
+        conn->linked_conn && !conn->linked_conn->marked_for_close) {
       log_debug(LD_DIR, "found one: %s", conn->address);
       return 1;
     }