]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Initialize rate_limited to false in directory_get_from_hs_dir()
authorNeel Chauhan <neel@neelc.org>
Fri, 19 Apr 2019 13:17:29 +0000 (09:17 -0400)
committerNeel Chauhan <neel@neelc.org>
Fri, 19 Apr 2019 13:17:29 +0000 (09:17 -0400)
src/feature/rend/rendclient.c

index 090722a4c597fe36ce5c13dae6e89809b1375b1c..f84d221b1a8cc913093b256e7443645e9341f3e3 100644 (file)
@@ -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(). */