summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/rendservice.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 0e715fe276..8f224e81de 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1752,7 +1752,7 @@ rend_hsdir_routers_changed(void)
consider_republishing_rend_descriptors = 1;
}
-/** Consider republication of rendezvous service descriptors that failed
+/** Consider republication of v2 rendezvous service descriptors that failed
* previously, but without regenerating descriptor contents.
*/
void
@@ -1770,7 +1770,8 @@ rend_consider_descriptor_republication(void)
for (i=0; i < smartlist_len(rend_service_list); ++i) {
service = smartlist_get(rend_service_list, i);
- if (service->desc && !service->desc->all_uploads_performed) {
+ if (service->descriptor_version && service->desc &&
+ !service->desc->all_uploads_performed) {
/* If we failed in uploading a descriptor last time, try again *without*
* updating the descriptor's contents. */
upload_service_descriptor(service);