diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-04-20 02:27:58 -0700 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-04-28 18:14:50 +0200 |
commit | 440e48ddf27094e48c401c68c9014eca43b6867e (patch) | |
tree | 44461748a3895f0fa13f2a955cc94edec896ed89 /src/or/rendcommon.c | |
parent | 43ffd023e9267927539dc9c12bee86199cd1c800 (diff) | |
download | tor-440e48ddf27094e48c401c68c9014eca43b6867e.tar.gz tor-440e48ddf27094e48c401c68c9014eca43b6867e.zip |
Forget all rendezvous client state on SIGNAL NEWNYM
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 d6f5443815..ba28ccabd4 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -871,6 +871,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 |