diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-23 11:46:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-23 11:46:44 -0400 |
commit | 824bebd40954d2f766a7b37e6b4d206f9b682ed9 (patch) | |
tree | 6e586fd78c7dfc189380dac407844d9d84171a2a /src/or/rendservice.c | |
parent | 5de91d118ddc3b33bdbed33dbe7fee93f8790c46 (diff) | |
download | tor-824bebd40954d2f766a7b37e6b4d206f9b682ed9.tar.gz tor-824bebd40954d2f766a7b37e6b4d206f9b682ed9.zip |
sandbox: Correct fix for hs part of 12064
Bugfix on cfd0ee514c279bc6c7b; bug not in any released version of tor
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 631e2a0f2e..a7c1e32f15 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -670,14 +670,18 @@ rend_service_add_filenames_to_list(smartlist_t *lst, const rend_service_t *s) s->directory); } -/** Add to <b>lst</b> every filename used by a configured hidden service */ +/** Add to <b>open_lst</b> every filename used by a configured hidden service, + * and to <b>stat_lst</b> every directory used by a configured hidden + * service */ void -rend_services_add_filenames_to_list(smartlist_t *lst) +rend_services_add_filenames_to_lists(smartlist_t *open_lst, + smartlist_t *stat_lst) { if (!rend_service_list) return; SMARTLIST_FOREACH_BEGIN(rend_service_list, rend_service_t *, s) { - rend_service_add_filenames_to_list(lst, s); + rend_service_add_filenames_to_list(open_lst, s); + smartlist_add(stat_lst, tor_strdup(s->directory)); } SMARTLIST_FOREACH_END(s); } |