diff options
author | Roger Dingledine <arma@torproject.org> | 2008-01-24 22:46:29 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-01-24 22:46:29 +0000 |
commit | cbe9863422f05c5b4e13f9492e18c4d12bbeadec (patch) | |
tree | 48c9cf4526f56aecfe83c7c59342179e108b102e /src/or/rendservice.c | |
parent | ab79f532060199c635c72a47009fce1a6702f42b (diff) | |
download | tor-cbe9863422f05c5b4e13f9492e18c4d12bbeadec.tar.gz tor-cbe9863422f05c5b4e13f9492e18c4d12bbeadec.zip |
patch "14a" from karsten: don't fail if we can't find
REND_NUMBER_OF_CONSECUTIVE_REPLICAS v2 hsdirs.
svn:r13263
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 1a355c883d..976ba45573 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1076,7 +1076,8 @@ upload_service_descriptor(rend_service_t *service) /* Upload v2 descriptor? */ if (service->descriptor_version == 2 && get_options()->PublishHidServDescriptors) { - if (hid_serv_have_enough_directories()) { + networkstatus_vote_t *c = networkstatus_get_latest_consensus(); + if (c && smartlist_len(c->routerstatus_list) > 0) { int seconds_valid; smartlist_t *descs = smartlist_create(); int i; |