ソースを参照

Merge branch 'maint-0.3.3'

Nick Mathewson 6 年 前
コミット
5278d72f97
2 ファイル変更8 行追加0 行削除
  1. 5 0
      changes/bug24903
  2. 3 0
      src/or/control.c

+ 5 - 0
changes/bug24903

@@ -0,0 +1,5 @@
+  o Minor bugfixes (controller, reliability):
+    - Avoid a (nonfatal) assertion failure when extending a one-hop circuit
+      from the controller to become a multihop circuit. Fixes bug 24903;
+      bugfix on 0.2.5.2-alpha.
+

+ 3 - 0
src/or/control.c

@@ -3530,6 +3530,9 @@ handle_control_extendcircuit(control_connection_t *conn, uint32_t len,
       goto done;
     }
     circuit_append_new_exit(circ, info);
+    if (circ->build_state->desired_path_len > 1) {
+      circ->build_state->onehop_tunnel = 0;
+    }
     extend_info_free(info);
     first_node = 0;
   });