aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2013-09-12 09:14:56 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2013-09-12 09:21:13 +0200
commit6553bdde8cc2c84434b87b507e628b28e4054b76 (patch)
tree2c2d79f2aa0f9006d17b261da82a3fc9ac302fd5
parente39292f21dd363bd7601b63b4f43a95705c3332b (diff)
downloadtor-6553bdde8cc2c84434b87b507e628b28e4054b76.tar
tor-6553bdde8cc2c84434b87b507e628b28e4054b76.tar.gz
Don't format cell stats for unattached circuits.
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 495b7d7b0..616fec4e3 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -4085,7 +4085,7 @@ format_cell_stats(char **event_string, circuit_t *circ,
origin_circuit_t *ocirc = TO_ORIGIN_CIRCUIT(circ);
smartlist_add_asprintf(event_parts, "ID=%lu",
(unsigned long)ocirc->global_identifier);
- } else {
+ } else if (TO_OR_CIRCUIT(circ)->p_chan) {
or_circuit_t *or_circ = TO_OR_CIRCUIT(circ);
smartlist_add_asprintf(event_parts, "InboundQueue=%lu",
(unsigned long)or_circ->p_circ_id);