]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Exclude v0 rendezvous descriptors when considering republication.
authorKarsten Loesing <karsten.loesing@gmx.net>
Tue, 23 Sep 2008 09:30:57 +0000 (09:30 +0000)
committerKarsten Loesing <karsten.loesing@gmx.net>
Tue, 23 Sep 2008 09:30:57 +0000 (09:30 +0000)
svn:r16939

src/or/rendservice.c

index 0e715fe27694712a4a57be09df1e9bc54746b3ea..8f224e81def621f1ea1a1624dcadd349f5138094 100644 (file)
@@ -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);