[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix a "make check" regression in --list-fingerprint.
commit a675ef8eeabcd6c2ab05cfadc59a95de578be380
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Dec 14 15:39:31 2016 -0500
Fix a "make check" regression in --list-fingerprint.
---
src/or/hs_circuitmap.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/or/hs_circuitmap.c b/src/or/hs_circuitmap.c
index 790c4d3..321c8dd 100644
--- a/src/or/hs_circuitmap.c
+++ b/src/or/hs_circuitmap.c
@@ -320,9 +320,9 @@ hs_circuitmap_init(void)
void
hs_circuitmap_free_all(void)
{
- tor_assert(the_hs_circuitmap);
-
- HT_CLEAR(hs_circuitmap_ht, the_hs_circuitmap);
- tor_free(the_hs_circuitmap);
+ if (the_hs_circuitmap) {
+ HT_CLEAR(hs_circuitmap_ht, the_hs_circuitmap);
+ tor_free(the_hs_circuitmap);
+ }
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits