[tor-commits] [tor/master] fixup! Download microdescriptors if you're a cache

nickm at torproject.org nickm at torproject.org
Fri Jan 23 15:03:15 UTC 2015


commit 06bda506003826bf9a28aec3afe0b7b1ae6cc9c0
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Sep 23 12:32:02 2014 -0400

    fixup! Download microdescriptors if you're a cache
---
 src/or/routerlist.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 5bcfdb4..ff2f54d 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4295,8 +4295,9 @@ MOCK_IMPL(STATIC void, initiate_descriptor_downloads,
 {
   char *resource, *cp;
   int digest_len = DIGEST_LEN, enc_digest_len = HEX_DIGEST_LEN;
-  char *sep = "+";
+  const char *sep = "+";
   int b64_256 = 0;
+  smartlist_t *tmp;
 
   if (purpose == DIR_PURPOSE_FETCH_MICRODESC) {
     /* Microdescriptors are downloaded by "-"-separated base64-encoded
@@ -4316,7 +4317,7 @@ MOCK_IMPL(STATIC void, initiate_descriptor_downloads,
     return;
 
   digest_len += 1;  // for the NULL
-  smartlist_t *tmp = smartlist_new();
+  tmp = smartlist_new();
 
   for (; lo < hi; ++lo) {
     cp = tor_malloc(enc_digest_len);





More information about the tor-commits mailing list