[tor-commits] [tor/master] Initialize rate_limited to false in directory_get_from_hs_dir()

nickm at torproject.org nickm at torproject.org
Tue Apr 23 18:14:23 UTC 2019


commit 144bc5026e90421bb814f35f2b61f3ffa0d078f8
Author: Neel Chauhan <neel at neelc.org>
Date:   Fri Apr 19 09:17:29 2019 -0400

    Initialize rate_limited to false in directory_get_from_hs_dir()
---
 src/feature/rend/rendclient.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/feature/rend/rendclient.c b/src/feature/rend/rendclient.c
index 090722a4c..f84d221b1 100644
--- a/src/feature/rend/rendclient.c
+++ b/src/feature/rend/rendclient.c
@@ -469,7 +469,7 @@ directory_get_from_hs_dir(const char *desc_id,
 
   /* Automatically pick an hs dir if none given. */
   if (!rs_hsdir) {
-    bool rate_limited;
+    bool rate_limited = false;
 
     /* Determine responsible dirs. Even if we can't get all we want, work with
      * the ones we have. If it's empty, we'll notice in hs_pick_hsdir(). */





More information about the tor-commits mailing list