]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'maint-0.3.2' into maint-0.3.3
authorNick Mathewson <nickm@torproject.org>
Fri, 29 Jun 2018 17:00:56 +0000 (13:00 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 29 Jun 2018 17:00:56 +0000 (13:00 -0400)
1  2 
src/or/routerlist.c
src/or/shared_random_state.c
src/test/test_hs.c
src/test/test_shared_random.c

index 1bfbd9f670109d2c06589b9d559c781b31038c4d,95b39d357161c31e0505ede783d7e76f9d338b82..203895c86775f1e627c79aefe99a196f5f03ee54
@@@ -2758,9 -2755,11 +2758,11 @@@ frac_nodes_with_descriptors(const smart
        total <= 0.0) {
      int n_with_descs = 0;
      SMARTLIST_FOREACH(sl, const node_t *, node, {
 -      if (node_has_descriptor(node))
 +      if (node_has_any_descriptor(node))
          n_with_descs++;
      });
+     tor_free(bandwidths);
      return ((double)n_with_descs) / (double)smartlist_len(sl);
    }
  
Simple merge
Simple merge
Simple merge