瀏覽代碼

Dont expire circuits we didnt originate. This may be redundant somehow, but better safe than sorry.

svn:r1331
Nick Mathewson 21 年之前
父節點
當前提交
b3f6b55ea1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/circuit.c

+ 1 - 0
src/or/circuit.c

@@ -926,6 +926,7 @@ void circuit_expire_unused_circuits(void) {
     if(((tmpcirc->timestamp_dirty &&
          tmpcirc->timestamp_dirty + options.NewCircuitPeriod < now) ||
         (options.RunTesting &&
+         tmpcirc->cpath &&
          tmpcirc->timestamp_created + TESTING_CIRCUIT_MAX_AGE < now))
        && !tmpcirc->p_conn
        && !tmpcirc->p_streams