aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-11-29 15:25:04 +0000
committerRoger Dingledine <arma@torproject.org>2007-11-29 15:25:04 +0000
commitaaf35cccf7ac60c17dac687127ec82c612232836 (patch)
treec382f9c21bb2812178fe1eb85147432c65e73b0c /src/or/routerlist.c
parent0f22c584cdc797e20f4aef74e5312ebda76d05fa (diff)
downloadtor-aaf35cccf7ac60c17dac687127ec82c612232836.tar
tor-aaf35cccf7ac60c17dac687127ec82c612232836.tar.gz
karsten's second refactoring patch
svn:r12607
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 7a328e28b..8635674a6 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4455,7 +4455,9 @@ hid_serv_have_enough_directories(void)
SMARTLIST_FOREACH(c->routerstatus_list, routerstatus_t *, r,
{
if (r->is_hs_dir)
- if (++n_hsdirs > REND_NUMBER_OF_CONSECUTIVE_REPLICAS)
+ /* XXXX020 In fact, REND_NUMBER_OF_CONSECUTIVE_REPLICAS hs dirs
+ * are enough. */
+ if (++n_hsdirs >= REND_NUMBER_OF_CONSECUTIVE_REPLICAS)
return 1;
});
return 0;