[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 6553bdde8cc2c84434b87b507e628b28e4054b76
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits