aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_circuitmap.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-14 15:39:31 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-14 15:39:31 -0500
commita675ef8eeabcd6c2ab05cfadc59a95de578be380 (patch)
treeba02760e0644e2d7e052cffa825a8494be9a0ef5 /src/or/hs_circuitmap.c
parentc838d34921f3e86841ff75ca8ad78c95bd1e2996 (diff)
downloadtor-a675ef8eeabcd6c2ab05cfadc59a95de578be380.tar.gz
tor-a675ef8eeabcd6c2ab05cfadc59a95de578be380.zip
Fix a "make check" regression in --list-fingerprint.
Diffstat (limited to 'src/or/hs_circuitmap.c')
-rw-r--r--src/or/hs_circuitmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/hs_circuitmap.c b/src/or/hs_circuitmap.c
index 790c4d3b84..321c8dd1c6 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);
+ }
}