From 6553bdde8cc2c84434b87b507e628b28e4054b76 Mon Sep 17 00:00:00 2001 From: Karsten Loesing Date: Thu, 12 Sep 2013 09:14:56 +0200 Subject: [PATCH] Don't format cell stats for unattached circuits. --- src/or/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/control.c b/src/or/control.c index 495b7d7b02..616fec4e3f 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); -- 2.11.4.GIT