[tor-commits] [tor/maint-0.2.8] Fix my dumb unreleased bug in 18673

nickm at torproject.org nickm at torproject.org
Tue Mar 29 00:09:13 UTC 2016


commit ba87f5bb25cd001ab8560f23a88e60a504c7059a
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Mar 28 20:09:09 2016 -0400

    Fix my dumb unreleased bug in 18673
---
 src/or/circuitlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 670c5b3..1efb7ef 100644
--- a/src/or/circuitlist.c
+++ b/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));



More information about the tor-commits mailing list