diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2008-09-23 09:30:57 +0000 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2008-09-23 09:30:57 +0000 |
commit | e4942e809edfd8cd20bf5938a8d19007268f58a9 (patch) | |
tree | d31a383ea7a270992a62cc443bf189149d69dbd9 | |
parent | 6a7abbd25d603a7546d92f95341d88ffb7581254 (diff) | |
download | tor-e4942e809edfd8cd20bf5938a8d19007268f58a9.tar.gz tor-e4942e809edfd8cd20bf5938a8d19007268f58a9.zip |
Exclude v0 rendezvous descriptors when considering republication.
svn:r16939
-rw-r--r-- | src/or/rendservice.c | 5 |
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); |