Prechádzať zdrojové kódy

Don't format cell stats for unattached circuits.

Karsten Loesing 10 rokov pred
rodič
commit
6553bdde8c
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/or/control.c

+ 1 - 1
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);