From 779b615bc272b287436398ae59afcf1ee19154d6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 31 Oct 2007 20:48:06 +0000 Subject: r16300@catbus: nickm | 2007-10-31 15:36:41 -0400 Next patch from Karsten: rename some macros, tunnel dir connections, generate (and upload) multiple descriptors as appropriate. svn:r12299 --- src/or/routerlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/routerlist.c') diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 7bdae35a8..52125b8dc 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4305,7 +4305,7 @@ hid_serv_get_responsible_directories(smartlist_t *responsible_dirs, const char *digest; int i; routerinfo_t *router; - char id_base32[REND_DESC_ID_V2_BASE32+1]; + char id_base32[REND_DESC_ID_V2_LEN_BASE32 + 1]; tor_assert(id); base32_encode(id_base32, sizeof(id_base32), id, DIGEST_LEN); if (!hid_serv_have_enough_directories(hs_dirs)) { @@ -4379,7 +4379,7 @@ hid_serv_acting_as_directory(const smartlist_t *hs_dirs) }); if (!found_me) { /* not acting as HS Dir */ - char me_base32[REND_DESC_ID_V2_BASE32 + 1]; + char me_base32[REND_DESC_ID_V2_LEN_BASE32 + 1]; base32_encode(me_base32, sizeof(me_base32), me->cache_info.identity_digest, DIGEST_LEN); log_info(LD_REND, "We are not acting as hidden service directory, " -- cgit v1.2.3