소스 검색

Use connection_or_get_num_circuits() in control.c

Andrea Shepard 13 년 전
부모
커밋
9ad7ba9f22
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/control.c

+ 1 - 1
src/or/control.c

@@ -3829,7 +3829,7 @@ control_event_or_conn_status(or_connection_t *conn, or_conn_status_event_t tp,
   } else {
     ncircs = 0;
   }
-  ncircs += conn->n_circuits;
+  ncircs += connection_or_get_num_circuits(conn);
   if (ncircs && (tp == OR_CONN_EVENT_FAILED || tp == OR_CONN_EVENT_CLOSED)) {
     tor_snprintf(ncircs_buf, sizeof(ncircs_buf), "%sNCIRCS=%d",
                  reason ? " " : "", ncircs);