瀏覽代碼

Note that circuit purpose changing can violate ExcludeNodes

Nick Mathewson 14 年之前
父節點
當前提交
db2fd28308
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/or/rendservice.c

+ 3 - 0
src/or/rendservice.c

@@ -1352,6 +1352,9 @@ rend_service_intro_has_opened(origin_circuit_t *circuit)
     log_info(LD_CIRC|LD_REND, "We have just finished an introduction "
              "circuit, but we already have enough. Redefining purpose to "
              "general.");
+    /* XXX022-1090: This can wind up violating ExcludeNodes/
+     * ExitNodes/ExcludeExitNodes restrictions.
+     */
     TO_CIRCUIT(circuit)->purpose = CIRCUIT_PURPOSE_C_GENERAL;
     circuit_has_opened(circuit);
     return;