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

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


commit 2ab19a48c24ce985ff8328c3c7778f6cd5bf90b3
Author: Neel Chauhan <neel at neelc.org>
Date:   Fri Apr 19 09:50:54 2019 -0400

    Initialize rate_limited in hs_pick_hsdir() to false
---
 src/feature/hs/hs_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/feature/hs/hs_common.c b/src/feature/hs/hs_common.c
index f9caf24f1..11efe078a 100644
--- a/src/feature/hs/hs_common.c
+++ b/src/feature/hs/hs_common.c
@@ -1605,7 +1605,7 @@ hs_pick_hsdir(smartlist_t *responsible_dirs, const char *req_key_str,
   routerstatus_t *hs_dir;
   time_t now = time(NULL);
   int excluded_some;
-  bool rate_limited;
+  bool rate_limited = false;
   int rate_limited_count = 0;
   int responsible_dirs_count = smartlist_len(responsible_dirs);
 





More information about the tor-commits mailing list