[tor-commits] [tor/master] Don't format cell stats for unattached circuits.

nickm at torproject.org nickm at torproject.org
Thu Oct 31 03:06:11 UTC 2013


commit 6553bdde8cc2c84434b87b507e628b28e4054b76
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Thu Sep 12 09:14:56 2013 +0200

    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 495b7d7..616fec4 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);





More information about the tor-commits mailing list