From: Karsten Loesing Date: Thu, 12 Sep 2013 07:14:56 +0000 (+0200) Subject: Don't format cell stats for unattached circuits. X-Git-Tag: tor-0.2.5.2-alpha~110^2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6553bdde8cc2c84434b87b507e628b28e4054b76;p=thirdparty%2Ftor.git Don't format cell stats for unattached circuits. --- 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);