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

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



commit ba87f5bb25cd001ab8560f23a88e60a504c7059a
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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));

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