summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-10-13 09:41:29 -0700
committerRobert Ransom <rransom.8774@gmail.com>2011-10-30 02:17:05 -0700
commit68331cbd81931b395355553531ee42961d3385e5 (patch)
treeea5b20e04ffa9f1a6fcdfa59a9dd32e229744282 /src/or/rendservice.c
parent3f6a2d3e2a83d60f287c485c4f444220792b0a66 (diff)
downloadtor-68331cbd81931b395355553531ee42961d3385e5.tar.gz
tor-68331cbd81931b395355553531ee42961d3385e5.zip
Determine whether an intro point was in the last HS desc in a sane way
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 96ab7a67aa..ce7295e350 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1947,17 +1947,11 @@ rend_services_introduce(void)
log_info(LD_REND,"Giving up on %s as intro point for %s.",
safe_str_client(extend_info_describe(intro->extend_info)),
safe_str_client(service->service_id));
- if (service->desc) {
- SMARTLIST_FOREACH(service->desc->intro_nodes, rend_intro_point_t *,
- dintro, {
- if (tor_memeq(dintro->extend_info->identity_digest,
- intro->extend_info->identity_digest, DIGEST_LEN)) {
- log_info(LD_REND, "The intro point we are giving up on was "
- "included in the last published descriptor. "
- "Marking current descriptor as dirty.");
- service->desc_is_dirty = now;
- }
- });
+ if (intro->listed_in_last_desc) {
+ log_info(LD_REND, "The intro point we are giving up on was "
+ "included in the last published descriptor. "
+ "Marking current descriptor as dirty.");
+ service->desc_is_dirty = now;
}
rend_intro_point_free(intro);
smartlist_del(service->intro_nodes,j--);