[or-cvs] r16939: {tor} Exclude v0 rendezvous descriptors when considering republica (tor/trunk/src/or)

kloesing at seul.org kloesing at seul.org
Tue Sep 23 09:30:57 UTC 2008


Author: kloesing
Date: 2008-09-23 05:30:57 -0400 (Tue, 23 Sep 2008)
New Revision: 16939

Modified:
   tor/trunk/src/or/rendservice.c
Log:
Exclude v0 rendezvous descriptors when considering republication.

Modified: tor/trunk/src/or/rendservice.c
===================================================================
--- tor/trunk/src/or/rendservice.c	2008-09-23 08:57:30 UTC (rev 16938)
+++ tor/trunk/src/or/rendservice.c	2008-09-23 09:30:57 UTC (rev 16939)
@@ -1752,7 +1752,7 @@
   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 @@
 
   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);



More information about the tor-commits mailing list