diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-04-28 19:00:34 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-04-28 19:00:34 +0200 |
commit | 4b13ebd5ab4d051803e9cfde8bb965a4bf8ea90d (patch) | |
tree | c0f219599f0968d40ec486efacd4e91ee637bb01 /src/or/rendcommon.c | |
parent | 0130e7c9d2842ad58e1b84829aeab16a2efba3bb (diff) | |
parent | 8a36f2125137dc31a0771a8eeac0f2bb8c1343d0 (diff) | |
download | tor-4b13ebd5ab4d051803e9cfde8bb965a4bf8ea90d.tar.gz tor-4b13ebd5ab4d051803e9cfde8bb965a4bf8ea90d.zip |
Merge branch 'bug3k_021' into bug3k_022
Conflicts:
src/or/or.h
src/or/rendclient.c
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 9d6a89ef1f..f8e7f9bbb0 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -834,6 +834,16 @@ rend_cache_clean(void) } } +/** Remove ALL entries from the rendezvous service descriptor cache. + */ +void +rend_cache_purge(void) +{ + if (rend_cache) + strmap_free(rend_cache, _rend_cache_entry_free); + rend_cache = strmap_new(); +} + /** Remove all old v2 descriptors and those for which this hidden service * directory is not responsible for any more. */ void |