[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Use connection_or_get_num_circuits() in control.c
commit 9ad7ba9f2267a9ee34fafda9356f1fa86633f00f
Author: Andrea Shepard <andrea@xxxxxxxxxxxxxxxxxxx>
Date: Fri Sep 7 04:40:42 2012 -0700
Use connection_or_get_num_circuits() in control.c
---
src/or/control.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/control.c b/src/or/control.c
index 5c05fe1..75a8f59 100644
--- a/src/or/control.c
+++ b/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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits