Explorar o código

Fix my dumb unreleased bug in 18673

Nick Mathewson %!s(int64=8) %!d(string=hai) anos
pai
achega
ba87f5bb25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/circuitlist.c

+ 1 - 1
src/or/circuitlist.c

@@ -760,7 +760,7 @@ or_circuit_new(circid_t p_circ_id, channel_t *p_chan)
 void
 circuit_clear_testing_cell_stats(circuit_t *circ)
 {
-  if (!circ)
+  if (!circ || !circ->testing_cell_stats)
     return;
   SMARTLIST_FOREACH(circ->testing_cell_stats, testing_cell_stats_entry_t *,
                     ent, tor_free(ent));